EGLplus (0.52.0) a C++ wrapper for EGL

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...
 

Detailed Description

Wrapper for EGLSurfaces.

Constructor & Destructor Documentation

eglplus::Surface::~Surface ( void  )

Destroys the wrapped surface.

Related EGL symbols:
eglDestroySurface

Member Function Documentation

bool eglplus::Surface::Attrib ( SurfaceAttrib  attrib,
EGLint  value 
)

Sets the value of the specified attribute.

Related EGL symbols:
eglSurfaceAttrib

Referenced by MultisampleResolve(), RenderBuffer(), and SwapBehavior().

bool eglplus::Surface::CopyBuffers ( EGLNativePixmapType  target)

Copy buffer to native pixmap.

Related EGL symbols:
eglCopyBuffers
EGLint eglplus::Surface::GetAttrib ( SurfaceAttrib  attrib) const

Gets the specified surface attribute value.

Related EGL symbols:
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.

Related EGL symbols:
eglQuerySurface EGL_GL_COLORSPACE

References GetAttrib(), and eglplus::GLColorspace.

EGLint eglplus::Surface::Height ( void  ) const

Returns the height of the surface.

Related EGL symbols:
eglQuerySurface EGL_HEIGHT

References GetAttrib(), and eglplus::Height.

eglplus::MultisampleResolve eglplus::Surface::MultisampleResolve ( void  ) const

Returns the multisample resolve setting of the surface.

Related EGL symbols:
eglQuerySurface EGL_MULTISAMPLE_RESOLVE

References GetAttrib(), and eglplus::MultisampleResolve.

void eglplus::Surface::MultisampleResolve ( eglplus::MultisampleResolve  value)

Sets the multisample resolve setting of the surface.

Related EGL symbols:
eglSurfaceAttrib EGL_MULTISAMPLE_RESOLVE

References Attrib(), and eglplus::MultisampleResolve.

static Surface eglplus::Surface::Pbuffer ( const Display display,
const Config config,
const FinishedSurfaceAttribs attribs 
)
static

Creates a Pbuffer surface.

Related EGL symbols:
eglCreatePbufferSurface
static Surface eglplus::Surface::Pixmap ( const Display display,
const Config config,
EGLNativePixmapType  pixmap,
const FinishedSurfaceAttribs attribs 
)
static

Creates a Pixmap surface.

Related EGL symbols:
eglCreatePixmapSurface
bool eglplus::Surface::QueryAttrib ( SurfaceAttrib  attrib,
EGLint &  value 
) const

Queries the specified surface attribute value.

Related EGL symbols:
eglQuerySurface

Referenced by GetAttrib().

eglplus::RenderBuffer eglplus::Surface::RenderBuffer ( void  ) const

Returns the render buffer setting of the surface.

Related EGL symbols:
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.

Related EGL symbols:
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.

Related EGL symbols:
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.

Related EGL symbols:
eglSurfaceAttrib EGL_SWAP_BEHAVIOR

References Attrib(), and eglplus::SwapBehavior.

bool eglplus::Surface::SwapBuffers ( void  )

Swap buffers.

Related EGL symbols:
eglSwapBuffers
eglplus::TextureFormat eglplus::Surface::TextureFormat ( void  ) const

Returns the texture format setting of the surface.

Related EGL symbols:
eglQuerySurface EGL_TEXTURE_FORMAT

References GetAttrib(), and eglplus::TextureFormat.

eglplus::TextureTarget eglplus::Surface::TextureTarget ( void  ) const

Returns the texture target setting of the surface.

Related EGL symbols:
eglQuerySurface EGL_TEXTURE_TARGET

References GetAttrib(), and eglplus::TextureTarget.

eglplus::VGAlphaFormat eglplus::Surface::VGAlphaFormat ( void  ) const

Returns the OpenVG alpha format of the surface.

Related EGL symbols:
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.

Related EGL symbols:
eglQuerySurface EGL_VG_COLORSPACE

References GetAttrib(), and eglplus::VGColorspace.

EGLint eglplus::Surface::Width ( void  ) const

Returns the Width of the surface.

Related EGL symbols:
eglQuerySurface EGL_WIDTH

References GetAttrib(), and eglplus::Width.

static Surface eglplus::Surface::Window ( const Display display,
const Config config,
EGLNativeWindowType  window,
const FinishedSurfaceAttribs attribs 
)
static

Creates a Window surface.

Related EGL symbols:
eglCreateWindowSurface

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/eglplus/surface.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).