Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::Adaptor::ECoreX::GlExtensions Class Reference

GlExtensions class provides GL extensions support. More...

#include <gl-extensions.h>

Public Member Functions

 GlExtensions ()
 Constructor. More...
 
 ~GlExtensions ()
 Destructor. More...
 
void DiscardFrameBuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments)
 If the GL extension is available this function discards specified data in attachments from being copied from the target to improve performance. More...
 
void GetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)
 GLES extension Returns the program object's executable bytecode. More...
 
void ProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length)
 GLES extension Loads a program object with a program binary previously returned from GetProgramBinaryOES. More...
 

Private Member Functions

void Initialize ()
 Lazy Initialize extensions on first use. More...
 

Private Attributes

bool mInitialized
 

Detailed Description

GlExtensions class provides GL extensions support.

Definition at line 47 of file gl-extensions.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::ECoreX::GlExtensions::GlExtensions ( )

Constructor.

Definition at line 39 of file gl-extensions.cpp.

Dali::Internal::Adaptor::ECoreX::GlExtensions::~GlExtensions ( )

Destructor.

Definition at line 44 of file gl-extensions.cpp.

Member Function Documentation

void Dali::Internal::Adaptor::ECoreX::GlExtensions::DiscardFrameBuffer ( GLenum  target,
GLsizei  numAttachments,
const GLenum attachments 
)

If the GL extension is available this function discards specified data in attachments from being copied from the target to improve performance.

Usage: GLenum attachments[] = { GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT }; DiscardFrameBufferEXT(GL_FRAMEBUFFER, 2, attachments);

Parameters
targetis usually GL_FRAMEBUFFER
numAttachmentsis the count of attachments
attachmentsis a pointer to the attachments

Definition at line 50 of file gl-extensions.cpp.

References DALI_LOG_ERROR, Initialize(), and mInitialized.

Here is the call graph for this function:

void Dali::Internal::Adaptor::ECoreX::GlExtensions::GetProgramBinaryOES ( GLuint  program,
GLsizei  bufSize,
GLsizei length,
GLenum binaryFormat,
GLvoid binary 
)

GLES extension Returns the program object's executable bytecode.

Parameters
[in]programThe program object's name/id
[in]bufSizeThe maximum number of bytes that may be written into binary
[out]lengthThe actual number of bytes written into binary
[out]binaryFormatThe format of the program binary
[out]binaryThe actual program bytecode

Definition at line 71 of file gl-extensions.cpp.

References DALI_ASSERT_DEBUG, DALI_LOG_ERROR, Initialize(), and mInitialized.

Referenced by Dali::Internal::Adaptor::GlImplementation::GetProgramBinary().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ECoreX::GlExtensions::Initialize ( void  )
private

Lazy Initialize extensions on first use.

Definition at line 115 of file gl-extensions.cpp.

References mInitialized.

Referenced by DiscardFrameBuffer(), GetProgramBinaryOES(), and ProgramBinaryOES().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ECoreX::GlExtensions::ProgramBinaryOES ( GLuint  program,
GLenum  binaryFormat,
const GLvoid binary,
GLint  length 
)

GLES extension Loads a program object with a program binary previously returned from GetProgramBinaryOES.

Parameters
[in]programThe program object's name/id
[in]binaryFormatThe format of the program binary
[in]binaryThe program bytecode
[in]lengthThe number of bytes in binary

Definition at line 93 of file gl-extensions.cpp.

References DALI_ASSERT_DEBUG, DALI_LOG_ERROR, Initialize(), and mInitialized.

Referenced by Dali::Internal::Adaptor::GlImplementation::ProgramBinary().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool Dali::Internal::Adaptor::ECoreX::GlExtensions::mInitialized
private

The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali