Wrapper for EGLSurfaces. More...
#include </home/chochlik/devel/oglplus/include/eglplus/surface.hpp>
Public Member Functions | |
Surface (Surface &&tmp) | |
Surfaces are move-constructible. | |
~Surface (void) | |
Destroys the wrapped surface. More... | |
bool | SwapBuffers (void) |
Swap buffers. More... | |
bool | CopyBuffers (EGLNativePixmapType target) |
Copy buffer to native pixmap. More... | |
bool | Attrib (SurfaceAttrib attrib, EGLint value) |
Sets the value of the specified attribute. More... | |
bool | QueryAttrib (SurfaceAttrib attrib, EGLint &value) const |
Queries the specified surface attribute value. More... | |
EGLint | GetAttrib (SurfaceAttrib attrib) const |
Gets the specified surface attribute value. More... | |
EGLint | Width (void) const |
Returns the Width of the surface. More... | |
EGLint | Height (void) const |
Returns the height of the surface. More... | |
eglplus::RenderBuffer | RenderBuffer (void) const |
Returns the render buffer setting of the surface. More... | |
void | RenderBuffer (eglplus::RenderBuffer render_buffer) |
Sets the render buffer setting of the surface. More... | |
eglplus::MultisampleResolve | MultisampleResolve (void) const |
Returns the multisample resolve setting of the surface. More... | |
void | MultisampleResolve (eglplus::MultisampleResolve value) |
Sets the multisample resolve setting of the surface. More... | |
eglplus::SwapBehavior | SwapBehavior (void) const |
Returns the buffer swap behavior setting of the surface. More... | |
void | SwapBehavior (eglplus::SwapBehavior value) |
Sets the buffer swap behavior setting of the surface. More... | |
eglplus::TextureTarget | TextureTarget (void) const |
Returns the texture target setting of the surface. More... | |
eglplus::TextureFormat | TextureFormat (void) const |
Returns the texture format setting of the surface. More... | |
eglplus::GLColorspace | GLColorspace (void) const |
Returns the OpenGL colorspace setting of the surface. More... | |
eglplus::VGColorspace | VGColorspace (void) const |
Returns the OpenVG colorspace setting of the surface. More... | |
eglplus::VGAlphaFormat | VGAlphaFormat (void) const |
Returns the OpenVG alpha format of the surface. More... | |
Static Public Member Functions | |
static Surface | Pbuffer (const Display &display, const Config &config, const FinishedSurfaceAttribs &attribs) |
Creates a Pbuffer surface. More... | |
static Surface | Pixmap (const Display &display, const Config &config, EGLNativePixmapType pixmap, const FinishedSurfaceAttribs &attribs) |
Creates a Pixmap surface. More... | |
static Surface | Window (const Display &display, const Config &config, EGLNativeWindowType window, const FinishedSurfaceAttribs &attribs) |
Creates a Window surface. More... | |
Wrapper for EGLSurfaces.
eglplus::Surface::~Surface | ( | void | ) |
Destroys the wrapped surface.
eglDestroySurface
bool eglplus::Surface::Attrib | ( | SurfaceAttrib | attrib, |
EGLint | value | ||
) |
Sets the value of the specified attribute.
eglSurfaceAttrib
Referenced by MultisampleResolve(), RenderBuffer(), and SwapBehavior().
bool eglplus::Surface::CopyBuffers | ( | EGLNativePixmapType | target | ) |
Copy buffer to native pixmap.
eglCopyBuffers
EGLint eglplus::Surface::GetAttrib | ( | SurfaceAttrib | attrib | ) | const |
Gets the specified surface attribute value.
eglQuerySurface
References QueryAttrib().
Referenced by GLColorspace(), Height(), MultisampleResolve(), RenderBuffer(), SwapBehavior(), TextureFormat(), TextureTarget(), VGAlphaFormat(), VGColorspace(), and Width().
eglplus::GLColorspace eglplus::Surface::GLColorspace | ( | void | ) | const |
Returns the OpenGL colorspace setting of the surface.
eglQuerySurface
EGL_GL_COLORSPACE
References GetAttrib(), and eglplus::GLColorspace.
EGLint eglplus::Surface::Height | ( | void | ) | const |
Returns the height of the surface.
eglQuerySurface
EGL_HEIGHT
References GetAttrib(), and eglplus::Height.
eglplus::MultisampleResolve eglplus::Surface::MultisampleResolve | ( | void | ) | const |
Returns the multisample resolve setting of the surface.
eglQuerySurface
EGL_MULTISAMPLE_RESOLVE
References GetAttrib(), and eglplus::MultisampleResolve.
void eglplus::Surface::MultisampleResolve | ( | eglplus::MultisampleResolve | value | ) |
Sets the multisample resolve setting of the surface.
eglSurfaceAttrib
EGL_MULTISAMPLE_RESOLVE
References Attrib(), and eglplus::MultisampleResolve.
|
static |
Creates a Pbuffer surface.
eglCreatePbufferSurface
|
static |
Creates a Pixmap surface.
eglCreatePixmapSurface
bool eglplus::Surface::QueryAttrib | ( | SurfaceAttrib | attrib, |
EGLint & | value | ||
) | const |
Queries the specified surface attribute value.
eglQuerySurface
Referenced by GetAttrib().
eglplus::RenderBuffer eglplus::Surface::RenderBuffer | ( | void | ) | const |
Returns the render buffer setting of the surface.
eglQuerySurface
EGL_RENDER_BUFFER
References GetAttrib(), and eglplus::RenderBuffer.
void eglplus::Surface::RenderBuffer | ( | eglplus::RenderBuffer | render_buffer | ) |
Sets the render buffer setting of the surface.
eglSurfaceAttrib
EGL_RENDER_BUFFER
References Attrib(), and eglplus::RenderBuffer.
eglplus::SwapBehavior eglplus::Surface::SwapBehavior | ( | void | ) | const |
Returns the buffer swap behavior setting of the surface.
eglQuerySurface
EGL_SWAP_BEHAVIOR
References GetAttrib(), and eglplus::SwapBehavior.
void eglplus::Surface::SwapBehavior | ( | eglplus::SwapBehavior | value | ) |
Sets the buffer swap behavior setting of the surface.
eglSurfaceAttrib
EGL_SWAP_BEHAVIOR
References Attrib(), and eglplus::SwapBehavior.
bool eglplus::Surface::SwapBuffers | ( | void | ) |
Swap buffers.
eglSwapBuffers
eglplus::TextureFormat eglplus::Surface::TextureFormat | ( | void | ) | const |
Returns the texture format setting of the surface.
eglQuerySurface
EGL_TEXTURE_FORMAT
References GetAttrib(), and eglplus::TextureFormat.
eglplus::TextureTarget eglplus::Surface::TextureTarget | ( | void | ) | const |
Returns the texture target setting of the surface.
eglQuerySurface
EGL_TEXTURE_TARGET
References GetAttrib(), and eglplus::TextureTarget.
eglplus::VGAlphaFormat eglplus::Surface::VGAlphaFormat | ( | void | ) | const |
Returns the OpenVG alpha format of the surface.
eglQuerySurface
EGL_VG_ALPHA_FORMAT
References GetAttrib(), and eglplus::VGAlphaFormat.
eglplus::VGColorspace eglplus::Surface::VGColorspace | ( | void | ) | const |
Returns the OpenVG colorspace setting of the surface.
eglQuerySurface
EGL_VG_COLORSPACE
References GetAttrib(), and eglplus::VGColorspace.
EGLint eglplus::Surface::Width | ( | void | ) | const |
Returns the Width of the surface.
eglQuerySurface
EGL_WIDTH
References GetAttrib(), and eglplus::Width.
|
static |
Creates a Window surface.
eglCreateWindowSurface