#include <EGLHelper.h>
Public Member Functions | |
EGLHelper (const eC_UInt &uiVersion, const eC_Int &iID, const eC_Int &iBufferSize, const eC_Int &iRedSize, const eC_Int &iGreenSize, const eC_Int &iBlueSize, const eC_Int &iAlphaSize, const eC_Int &iDepthSize) | |
virtual | ~EGLHelper () |
const EGLDisplay | GetDisplay () const |
eC_UInt | GetHeight () const |
const EGLConfig | GetOffScreenConfig () const |
const EGLContext | GetOffScreenContext () const |
const EGLConfig | GetScreenConfig () const |
const EGLContext | GetScreenContext () const |
eC_UInt | GetWidth () const |
const EGLSurface | GetWindowSurface () const |
eC_Bool | IsInited () const |
virtual eC_Bool | SwapBuffers () |
Static Public Member Functions | |
static eC_Bool | CheckEGLError (const eC_String &kCallingMethod) |
static eC_Bool | CreateInstance (const eC_UInt &uiVersion, const eC_Int &iID=-1, const eC_Int &iBufferSize=16, const eC_Int &iRedSize=1, const eC_Int &iGreenSize=1, const eC_Int &iBlueSize=1, const eC_Int &iAlphaSize=0, const eC_Int &iDepthSize=16) |
static EGLHelper & | GetInstance () |
This provides a helper methods to init EGL
EGLHelper::EGLHelper | ( | const eC_UInt & | uiVersion, |
const eC_Int & | iID, | ||
const eC_Int & | iBufferSize, | ||
const eC_Int & | iRedSize, | ||
const eC_Int & | iGreenSize, | ||
const eC_Int & | iBlueSize, | ||
const eC_Int & | iAlphaSize, | ||
const eC_Int & | iDepthSize | ||
) |
Constructor
uiVersion | OpenGL ES version to instantiate |
iID | pick config with id (set to -1 if not interested) (default: -1) |
iBufferSize | size of buffer for config (default: 16) |
iRedSize | size of red component for config (default: 1) |
iGreenSize | size of green component for config (default: 1) |
iBlueSize | size of blue component for config (default: 1) |
iAlphaSize | size of alpha component for config (default: 0) |
iDepthSize | size of depth buffer for config (default: 16) |
|
virtual |
Destructor
|
static |
Checks for EGL error and prints the error code.
[in] | kCallingMethod | Method name which calls this function. Used to print the method name. |
|
static |
Create an instance
uiVersion | OpenGL ES version to instantiate |
iID | pick config with id (set to -1 if not interested) (default: -1) |
iBufferSize | size of buffer for config (default: 16) |
iRedSize | size of red component for config (default: 1) |
iGreenSize | size of green component for config (default: 1) |
iBlueSize | size of blue component for config (default: 1) |
iAlphaSize | size of alpha component for config (default: 0) |
iDepthSize | size of depth buffer for config (default: 16) |
|
inline |
Returns the EGL display handle.
eC_UInt EGLHelper::GetHeight | ( | ) | const |
Return height of EGL-screen
|
static |
get instance
|
inline |
Returns the offscreen config.
|
inline |
Returns the offscreen context.
|
inline |
Returns the screen config.
|
inline |
Returns the screen context.
eC_UInt EGLHelper::GetWidth | ( | ) | const |
Return width of EGL-screen
|
inline |
Returns the EGL window surface.
|
inline |
Return if EGL is inited
|
virtual |
swap buffers