#include
<eglplus/surface.hpp>
typedef AttributeList<SurfaceAttrib, ...> SurfaceAttribs; typedef FinishedAttributeList<SurfaceAttrib, ...> FinishedSurfaceAttribs;
Surface
is a wrapper around EGLSurface
.
class Surface { public: Surface(Surface&& tmp) noexcept; ~Surface(void); static Surface Pbuffer( const Display& display, const Config& config, const FinishedSurfaceAttribs& attribs ); static Surface Pixmap( const Display& display, const Config& config, EGLNativePixmapType pixmap, const FinishedSurfaceAttribs& attribs ); static Surface Window( const Display& display, const Config& config, EGLNativeWindowType window, const FinishedSurfaceAttribs& attribs ); Boolean SwapBuffers(void); Boolean CopyBuffers(EGLNativePixmapType target); Boolean Attrib(SurfaceAttrib attrib, EGLint value); Boolean QueryAttrib(SurfaceAttrib attrib, EGLint& value) const; EGLint GetAttrib(SurfaceAttrib attrib) const; EGLint Width(void) const; EGLint Height(void) const;
Destroys the wrapped surface. See [eglfunref DestroySurface]. |
|
Creates a Pbuffer surface. See |
|
Creates a Pixmap surface. See |
|
Creates a Window surface. See |
|
Swap the front and back buffers. See |
|
Copy buffer to native pixmap. See |
|
Sets the value of the specified attribute. See |
|
Queries the specified surface attribute value. See |
|
Gets the specified surface attribute value. See |
|
Returns the width of the surface. See |
|
Returns the height of the surface. See |
RenderBuffer RenderBuffer(void) const; void RenderBuffer(RenderBuffer render_buffer); MultisampleResolve MultisampleResolve(void) const; void MultisampleResolve(MultisampleResolve value); SwapBehavior SwapBehavior(void) const; void SwapBehavior(SwapBehavior value); TextureTarget TextureTarget(void) const; TextureFormat TextureFormat(void) const; GLColorSpace GLColorspace(void) const; VGColorSpace VGColorspace(void) const; VGAlphaFormat VGAlphaFormat(void) const; }; ::EGLSurface GetEGLHandle(const Surface& surface) noexcept;
Returns the render buffer setting of the surface. See |
|
Changes the render buffer setting of the surface. See |
|
Returns the multisample resolve setting of the surface. See |
|
Changes the multisample resolve setting of the surface. See |
|
Returns the buffer swap behavior setting of the surface. See |
|
Changes the buffer swap behavior setting of the surface. See |
|
Returns the texture target setting of the surface. See |
|
Returns the texture format setting of the surface. See |
|
Returns the OpenGL colorspace setting of the surface. See |
|
Returns the OpenVG colorspace setting of the surface. See |
|
Returns the OpenVG alpha format of the surface. See |
|
Returns the EGL surface handle wrapped by a Surface. |