Crazy Eddie's GUI System
0.8.4
|
Renderer class to interface with OpenGL. More...
Public Member Functions | |
OpenGL3Shader *& | getShaderStandard () |
Helper to return the reference to the pointer to the standard shader of the Renderer. | |
GLint | getShaderStandardPositionLoc () |
Helper to return the attribute location of the position variable in the standard shader. | |
GLint | getShaderStandardTexCoordLoc () |
Helper to return the attribute location of the texture coordinate variable in the standard shader. | |
GLint | getShaderStandardColourLoc () |
Helper to return the attribute location of the colour variable in the standard shader. | |
GLint | getShaderStandardMatrixUniformLoc () |
Helper to return the uniform location of the matrix variable in the standard shader. | |
OpenGL3StateChangeWrapper * | getOpenGLStateChanger () |
Helper to get the wrapper used to check for redundant OpenGL state changes. | |
void | beginRendering () |
Perform any operations required to put the system into a state ready for rendering operations to begin. | |
void | endRendering () |
Perform any operations required to finalise rendering. | |
Sizef | getAdjustedTextureSize (const Sizef &sz) const |
Helper to return a valid texture size according to reported OpenGL capabilities. | |
bool | isS3TCSupported () const |
Return whether EXT_texture_compression_s3tc is supported. | |
void | setupRenderingBlendMode (const BlendMode mode, const bool force=false) |
set the render states for the specified BlendMode. | |
Static Public Member Functions | |
static OpenGL3Renderer & | bootstrapSystem (const int abi=CEGUI_VERSION_ABI) |
Convenience function that creates the required objects to initialise the CEGUI system. | |
static OpenGL3Renderer & | bootstrapSystem (const Sizef &display_size, const int abi=CEGUI_VERSION_ABI) |
Convenience function that creates the required objects to initialise the CEGUI system. | |
static void | destroySystem () |
Convenience function to cleanup the CEGUI system and related objects that were created by calling the bootstrapSystem function. | |
static OpenGL3Renderer & | create (const int abi=CEGUI_VERSION_ABI) |
Create an OpenGL3Renderer object. | |
static OpenGL3Renderer & | create (const Sizef &display_size, const int abi=CEGUI_VERSION_ABI) |
Create an OpenGL3Renderer object. | |
static void | destroy (OpenGL3Renderer &renderer) |
Destroy an OpenGL3Renderer object. |
Renderer class to interface with OpenGL.
static OpenGL3Renderer& CEGUI::OpenGL3Renderer::bootstrapSystem | ( | const int | abi = CEGUI_VERSION_ABI | ) | [static] |
Convenience function that creates the required objects to initialise the CEGUI system.
The created Renderer will use the current OpenGL viewport as it's default surface size.
This will create and initialise the following objects for you:
abi | This must be set to CEGUI_VERSION_ABI |
static OpenGL3Renderer& CEGUI::OpenGL3Renderer::bootstrapSystem | ( | const Sizef & | display_size, |
const int | abi = CEGUI_VERSION_ABI |
||
) | [static] |
Convenience function that creates the required objects to initialise the CEGUI system.
The created Renderer will use the current OpenGL viewport as it's default surface size.
This will create and initialise the following objects for you:
display_size | Size object describing the initial display resolution. |
abi | This must be set to CEGUI_VERSION_ABI |
static OpenGL3Renderer& CEGUI::OpenGL3Renderer::create | ( | const int | abi = CEGUI_VERSION_ABI | ) | [static] |
Create an OpenGL3Renderer object.
tt_type | Specifies one of the TextureTargetType enumerated values indicating the desired TextureTarget type to be used. |
abi | This must be set to CEGUI_VERSION_ABI |
static OpenGL3Renderer& CEGUI::OpenGL3Renderer::create | ( | const Sizef & | display_size, |
const int | abi = CEGUI_VERSION_ABI |
||
) | [static] |
Create an OpenGL3Renderer object.
display_size | Size object describing the initial display resolution. |
tt_type | Specifies one of the TextureTargetType enumerated values indicating the desired TextureTarget type to be used. |
abi | This must be set to CEGUI_VERSION_ABI |
static void CEGUI::OpenGL3Renderer::destroy | ( | OpenGL3Renderer & | renderer | ) | [static] |
Destroy an OpenGL3Renderer object.
renderer | The OpenGL3Renderer object to be destroyed. |
static void CEGUI::OpenGL3Renderer::destroySystem | ( | ) | [static] |
Convenience function to cleanup the CEGUI system and related objects that were created by calling the bootstrapSystem function.
This function will destroy the following objects for you:
Sizef CEGUI::OpenGL3Renderer::getAdjustedTextureSize | ( | const Sizef & | sz | ) | const [virtual] |
Helper to return a valid texture size according to reported OpenGL capabilities.
sz | Size object containing input size. |
Reimplemented from CEGUI::OpenGLRendererBase.
Helper to get the wrapper used to check for redundant OpenGL state changes.
Helper to return the attribute location of the colour variable in the standard shader.
Helper to return the uniform location of the matrix variable in the standard shader.
Helper to return the attribute location of the position variable in the standard shader.
Helper to return the attribute location of the texture coordinate variable in the standard shader.