Guiliani  Version 2.6 revision 7293 (documentation build 12)
EGLHelper Class Reference

#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 EGLHelperGetInstance ()
 

Detailed Description

This provides a helper methods to init EGL

Constructor & Destructor Documentation

◆ EGLHelper()

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

Parameters
uiVersionOpenGL ES version to instantiate
iIDpick config with id (set to -1 if not interested) (default: -1)
iBufferSizesize of buffer for config (default: 16)
iRedSizesize of red component for config (default: 1)
iGreenSizesize of green component for config (default: 1)
iBlueSizesize of blue component for config (default: 1)
iAlphaSizesize of alpha component for config (default: 0)
iDepthSizesize of depth buffer for config (default: 16)

◆ ~EGLHelper()

virtual EGLHelper::~EGLHelper ( )
virtual

Destructor

Member Function Documentation

◆ CheckEGLError()

static eC_Bool EGLHelper::CheckEGLError ( const eC_String &  kCallingMethod)
static

Checks for EGL error and prints the error code.

Parameters
[in]kCallingMethodMethod name which calls this function. Used to print the method name.
Returns
True if there is an error, False otherwise

◆ CreateInstance()

static eC_Bool EGLHelper::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

Create an instance

Parameters
uiVersionOpenGL ES version to instantiate
iIDpick config with id (set to -1 if not interested) (default: -1)
iBufferSizesize of buffer for config (default: 16)
iRedSizesize of red component for config (default: 1)
iGreenSizesize of green component for config (default: 1)
iBlueSizesize of blue component for config (default: 1)
iAlphaSizesize of alpha component for config (default: 0)
iDepthSizesize of depth buffer for config (default: 16)
Returns
true if successful

◆ GetDisplay()

const EGLDisplay EGLHelper::GetDisplay ( ) const
inline

Returns the EGL display handle.

Returns
EGL display handle

◆ GetHeight()

eC_UInt EGLHelper::GetHeight ( ) const

Return height of EGL-screen

Returns
height

◆ GetInstance()

static EGLHelper & EGLHelper::GetInstance ( )
static

get instance

Returns
instance

◆ GetOffScreenConfig()

const EGLConfig EGLHelper::GetOffScreenConfig ( ) const
inline

Returns the offscreen config.

Returns
Offscreen config

◆ GetOffScreenContext()

const EGLContext EGLHelper::GetOffScreenContext ( ) const
inline

Returns the offscreen context.

Returns
Offscreen context

◆ GetScreenConfig()

const EGLConfig EGLHelper::GetScreenConfig ( ) const
inline

Returns the screen config.

Returns
Screen config

◆ GetScreenContext()

const EGLContext EGLHelper::GetScreenContext ( ) const
inline

Returns the screen context.

Returns
Screen context

◆ GetWidth()

eC_UInt EGLHelper::GetWidth ( ) const

Return width of EGL-screen

Returns
width

◆ GetWindowSurface()

const EGLSurface EGLHelper::GetWindowSurface ( ) const
inline

Returns the EGL window surface.

Returns
EGL window surface

◆ IsInited()

eC_Bool EGLHelper::IsInited ( ) const
inline

Return if EGL is inited

Returns
true if successfully inited

◆ SwapBuffers()

virtual eC_Bool EGLHelper::SwapBuffers ( )
virtual

swap buffers

Returns
true if successful

The documentation for this class was generated from the following file: