|
OpenGL3Shader *& | getShaderStandard () |
| Helper to return the reference to the pointer to the standard shader of the Renderer. More...
|
|
GLint | getShaderStandardPositionLoc () |
| Helper to return the attribute location of the position variable in the standard shader. More...
|
|
GLint | getShaderStandardTexCoordLoc () |
| Helper to return the attribute location of the texture coordinate variable in the standard shader. More...
|
|
GLint | getShaderStandardColourLoc () |
| Helper to return the attribute location of the colour variable in the standard shader. More...
|
|
GLint | getShaderStandardMatrixUniformLoc () |
| Helper to return the uniform location of the matrix variable in the standard shader. More...
|
|
OpenGL3StateChangeWrapper * | getOpenGLStateChanger () |
| Helper to get the wrapper used to check for redundant OpenGL state changes. More...
|
|
void | beginRendering () |
| Perform any operations required to put the system into a state ready for rendering operations to begin. More...
|
|
void | endRendering () |
| Perform any operations required to finalise rendering. More...
|
|
Sizef | getAdjustedTextureSize (const Sizef &sz) const |
| Helper to return a valid texture size according to reported OpenGL capabilities. More...
|
|
bool | isS3TCSupported () const |
|
void | setupRenderingBlendMode (const BlendMode mode, const bool force=false) |
| set the render states for the specified BlendMode. More...
|
|
RenderTarget & | getDefaultRenderTarget () |
| Returns the default RenderTarget object. The default render target is is typically one that targets the entire screen (or rendering window). More...
|
|
GeometryBuffer & | createGeometryBuffer () |
| Create a new GeometryBuffer and return a reference to it. You should remove the GeometryBuffer from any RenderQueues and call destroyGeometryBuffer when you want to destroy the GeometryBuffer. More...
|
|
void | destroyGeometryBuffer (const GeometryBuffer &buffer) |
| Destroy a GeometryBuffer that was returned when calling the createGeometryBuffer function. Before destroying any GeometryBuffer you should ensure that it has been removed from any RenderQueue that was using it. More...
|
|
void | destroyAllGeometryBuffers () |
| Destroy all GeometryBuffer objects created by this Renderer. More...
|
|
TextureTarget * | createTextureTarget () |
| Create a TextureTarget that can be used to cache imagery; this is a RenderTarget that does not lose it's content from one frame to another. More...
|
|
void | destroyTextureTarget (TextureTarget *target) |
| Function that cleans up TextureTarget objects created with the createTextureTarget function. More...
|
|
void | destroyAllTextureTargets () |
| Destory all TextureTarget objects created by this Renderer. More...
|
|
Texture & | createTexture (const String &name) |
| Create a 'null' Texture object. More...
|
|
Texture & | createTexture (const String &name, const String &filename, const String &resourceGroup) |
| Create a Texture object using the given image file. More...
|
|
Texture & | createTexture (const String &name, const Sizef &size) |
| Create a Texture object with the given pixel dimensions as specified by size. More...
|
|
void | destroyTexture (Texture &texture) |
| Destroy a Texture object that was previously created by calling the createTexture functions. More...
|
|
void | destroyTexture (const String &name) |
| Destroy a Texture object that was previously created by calling the createTexture functions. More...
|
|
void | destroyAllTextures () |
| Destroy all Texture objects created by this Renderer. More...
|
|
Texture & | getTexture (const String &name) const |
| Return a Texture object that was previously created by calling the createTexture functions. More...
|
|
bool | isTextureDefined (const String &name) const |
| Return whether a texture with the given name exists. More...
|
|
void | setDisplaySize (const Sizef &sz) |
| Set the size of the display or host window in pixels for this Renderer object. More...
|
|
const Sizef & | getDisplaySize () const |
| Return the size of the display or host window in pixels. More...
|
|
const Vector2f & | getDisplayDPI () const |
| Return the resolution of the display or host window in dots per inch. More...
|
|
uint | getMaxTextureSize () const |
| Return the pixel size of the maximum supported texture. More...
|
|
const String & | getIdentifierString () const |
| Return identification string for the renderer module. More...
|
|
Texture & | createTexture (const String &name, GLuint tex, const Sizef &sz) |
| Create a texture that uses an existing OpenGL texture with the specified size. Note that it is your responsibility to ensure that the OpenGL texture is valid and that the specified size is accurate. More...
|
|
void | enableExtraStateSettings (bool setting) |
| Tells the renderer to initialise some extra states beyond what it directly needs itself for CEGUI. More...
|
|
void | grabTextures () |
| Grabs all the loaded textures from Texture RAM and stores them in a local data buffer. This function invalidates all textures, and restoreTextures must be called before any CEGUI rendering is done for predictable results.
|
|
void | restoreTextures () |
| Restores all the loaded textures from the local data buffers previously created by 'grabTextures'.
|
|
virtual Sizef | getAdjustedTextureSize (const Sizef &sz) const |
| Helper to return a valid texture size according to reported OpenGL capabilities. More...
|
|
virtual void | setupRenderingBlendMode (const BlendMode mode, const bool force=false)=0 |
| set the render states for the specified BlendMode. More...
|
|
virtual bool | isS3TCSupported () const =0 |
|
virtual const mat4Pimpl * | getViewProjectionMatrix () |
| Helper to return view projection matrix. More...
|
|
virtual void | setViewProjectionMatrix (const mat4Pimpl *viewProjectionMatrix) |
| Helper to set the view projection matrix. More...
|
|
const CEGUI::Rectf & | getActiveViewPort () |
| Helper to get the viewport. More...
|
|
void | setActiveRenderTarget (RenderTarget *renderTarget) |
| Helper to set the active render target. More...
|
|
RenderTarget * | getActiveRenderTarget () |
| Helper to get the active render target. More...
|
|
bool | isTexCoordSystemFlipped () const |
| Returns if the texture coordinate system is vertically flipped or not. The original of a texture coordinate system is typically located either at the the top-left or the bottom-left. CEGUI, Direct3D and most rendering engines assume it to be on the top-left. OpenGL assumes it to be at the bottom left.
More...
|
|
virtual RenderTarget & | getDefaultRenderTarget ()=0 |
| Returns the default RenderTarget object. The default render target is is typically one that targets the entire screen (or rendering window). More...
|
|
virtual GeometryBuffer & | createGeometryBuffer ()=0 |
| Create a new GeometryBuffer and return a reference to it. You should remove the GeometryBuffer from any RenderQueues and call destroyGeometryBuffer when you want to destroy the GeometryBuffer. More...
|
|
virtual void | destroyGeometryBuffer (const GeometryBuffer &buffer)=0 |
| Destroy a GeometryBuffer that was returned when calling the createGeometryBuffer function. Before destroying any GeometryBuffer you should ensure that it has been removed from any RenderQueue that was using it. More...
|
|
virtual void | destroyAllGeometryBuffers ()=0 |
| Destroy all GeometryBuffer objects created by this Renderer. More...
|
|
virtual TextureTarget * | createTextureTarget ()=0 |
| Create a TextureTarget that can be used to cache imagery; this is a RenderTarget that does not lose it's content from one frame to another. More...
|
|
virtual void | destroyTextureTarget (TextureTarget *target)=0 |
| Function that cleans up TextureTarget objects created with the createTextureTarget function. More...
|
|
virtual void | destroyAllTextureTargets ()=0 |
| Destory all TextureTarget objects created by this Renderer. More...
|
|
virtual Texture & | createTexture (const String &name)=0 |
| Create a 'null' Texture object. More...
|
|
virtual Texture & | createTexture (const String &name, const String &filename, const String &resourceGroup)=0 |
| Create a Texture object using the given image file. More...
|
|
virtual Texture & | createTexture (const String &name, const Sizef &size)=0 |
| Create a Texture object with the given pixel dimensions as specified by size. More...
|
|
virtual void | destroyTexture (Texture &texture)=0 |
| Destroy a Texture object that was previously created by calling the createTexture functions. More...
|
|
virtual void | destroyTexture (const String &name)=0 |
| Destroy a Texture object that was previously created by calling the createTexture functions. More...
|
|
virtual void | destroyAllTextures ()=0 |
| Destroy all Texture objects created by this Renderer. More...
|
|
virtual Texture & | getTexture (const String &name) const =0 |
| Return a Texture object that was previously created by calling the createTexture functions. More...
|
|
virtual bool | isTextureDefined (const String &name) const =0 |
| Return whether a texture with the given name exists. More...
|
|
virtual void | beginRendering ()=0 |
| Perform any operations required to put the system into a state ready for rendering operations to begin. More...
|
|
virtual void | endRendering ()=0 |
| Perform any operations required to finalise rendering. More...
|
|
virtual void | setDisplaySize (const Sizef &size)=0 |
| Set the size of the display or host window in pixels for this Renderer object. More...
|
|
virtual const Sizef & | getDisplaySize () const =0 |
| Return the size of the display or host window in pixels. More...
|
|
virtual const Vector2f & | getDisplayDPI () const =0 |
| Return the resolution of the display or host window in dots per inch. More...
|
|
virtual uint | getMaxTextureSize () const =0 |
| Return the pixel size of the maximum supported texture. More...
|
|
virtual const String & | getIdentifierString () const =0 |
| Return identification string for the renderer module. More...
|
|
virtual | ~Renderer () |
| Destructor.
|
|
Renderer class to interface with desktop OpenGL version >= 3.2 or OpenGL ES version >= 2.
Note: to use this renderer with OpenGL ES 2.0, the Epoxy OpenGL loading library (https://github.com/yaronct/libepoxy, major version 1) must first be installed, and CEGUI must be configured with "-DCEGUI_BUILD_RENDERER_OPENGL=OFF -DCEGUI_BUILD_RENDERER_OPENGL3=ON
-DCEGUI_USE_EPOXY=ON -DCEGUI_USE_GLEW=OFF".
Note: Your OpenGL context must already be initialised when you call this; CEGUI will not create the OpenGL context itself. Nothing special has to be done to choose between desktop OpenGL and OpenGL ES: the type is automatically determined by the type of the current OpenGL context.