Inheritance diagram for CEGUI::OpenGLRenderer:
Public Member Functions | |
OpenGLRenderer (uint max_quads) | |
Constructor for OpenGL Renderer object. | |
OpenGLRenderer (uint max_quads, int width, int height) | |
virtual | ~OpenGLRenderer (void) |
Destructor for OpenGLRenderer objects. | |
virtual void | addQuad (const Rect &dest_rect, float z, const Texture *tex, const Rect &texture_rect, const ColourRect &colours, QuadSplitMode quad_split_mode) |
Add a quad to the rendering queue. All clipping and other adjustments should have been made prior to calling this. | |
virtual void | doRender (void) |
Perform final rendering for all quads that have been queued for rendering. | |
virtual void | clearRenderList (void) |
Clears all queued quads from the render queue. | |
virtual void | setQueueingEnabled (bool setting) |
Enable or disable the queuing of quads from this point on. | |
virtual Texture * | createTexture (void) |
Creates a 'null' Texture object. | |
virtual Texture * | createTexture (const String &filename, const String &resourceGroup) |
Create a Texture object using the given image file. | |
virtual Texture * | createTexture (float size) |
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square. | |
virtual void | destroyTexture (Texture *texture) |
Destroy the given Texture object. | |
virtual void | destroyAllTextures (void) |
Destroy all Texture objects. | |
virtual bool | isQueueingEnabled (void) const |
Return whether queuing is enabled. | |
virtual float | getWidth (void) const |
Return the current width of the display in pixels. | |
virtual float | getHeight (void) const |
Return the current height of the display in pixels. | |
virtual Size | getSize (void) const |
Return the size of the display in pixels. | |
virtual Rect | getRect (void) const |
Return a Rect describing the screen. | |
virtual uint | getMaxTextureSize (void) const |
Return the maximum texture size available. | |
virtual uint | getHorzScreenDPI (void) const |
Return the horizontal display resolution dpi. | |
virtual uint | getVertScreenDPI (void) const |
Return the vertical display resolution dpi. | |
void | setDisplaySize (const Size &sz) |
Set the size of the display in pixels. | |
void | grabTextures (void) |
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 (void) |
Restores all the loaded textures from the local data buffers previously created by 'grabTextures'. | |
Classes | |
struct | MyQuad |
struct | QuadInfo |
structure holding details about a quad to be drawn |
|
Constructor for OpenGL Renderer object.
|
|
Add a quad to the rendering queue. All clipping and other adjustments should have been made prior to calling this.
Implements CEGUI::Renderer. |
|
Clears all queued quads from the render queue.
Implements CEGUI::Renderer. |
|
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square.
Implements CEGUI::Renderer. |
|
Create a Texture object using the given image file.
Implements CEGUI::Renderer. |
|
Creates a 'null' Texture object.
Implements CEGUI::Renderer. |
|
Destroy all Texture objects.
Implements CEGUI::Renderer. |
|
Destroy the given Texture object.
Implements CEGUI::Renderer. |
|
Perform final rendering for all quads that have been queued for rendering. The contents of the rendering queue is retained and can be rendered again as required. If the contents is not required call clearRenderList().
Implements CEGUI::Renderer. |
|
Return the current height of the display in pixels.
Implements CEGUI::Renderer. |
|
Return the horizontal display resolution dpi.
Implements CEGUI::Renderer. |
|
Return the maximum texture size available.
Implements CEGUI::Renderer. |
|
Return a Rect describing the screen.
Implements CEGUI::Renderer. |
|
Return the size of the display in pixels.
Implements CEGUI::Renderer. |
|
Return the vertical display resolution dpi.
Implements CEGUI::Renderer. |
|
Return the current width of the display in pixels.
Implements CEGUI::Renderer. |
|
Return whether queuing is enabled.
Implements CEGUI::Renderer. |
|
Set the size of the display in pixels. If your viewport size changes, you can call this function with the new size in pixels to update the rendering area.
|
|
Enable or disable the queuing of quads from this point on. This only affects queuing. If queuing is turned off, any calls to addQuad will cause the quad to be rendered directly. Note that disabling queuing will not cause currently queued quads to be rendered, nor is the queue cleared - at any time the queue can still be drawn by calling doRender, and the list can be cleared by calling clearRenderList. Re-enabling the queue causes subsequent quads to be added as if queuing had never been disabled.
Implements CEGUI::Renderer. |