Inheritance diagram for CEGUI::Renderer:
Public Member Functions | |
virtual void | addQuad (const Rect &dest_rect, float z, const Texture *tex, const Rect &texture_rect, const ColourRect &colours, QuadSplitMode quad_split_mode)=0 |
Add a quad to the rendering queue. All clipping and other adjustments should have been made prior to calling this. | |
virtual void | doRender (void)=0 |
Perform final rendering for all quads that have been queued for rendering. | |
virtual void | clearRenderList (void)=0 |
Clears all queued quads from the render queue. | |
virtual void | setQueueingEnabled (bool setting)=0 |
Enable or disable the queueing of quads from this point on. | |
virtual Texture * | createTexture (void)=0 |
Creates a 'null' Texture object. | |
virtual Texture * | createTexture (const String &filename, const String &resourceGroup)=0 |
Create a Texture object using the given image file. | |
virtual Texture * | createTexture (float size)=0 |
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square. | |
virtual void | destroyTexture (Texture *texture)=0 |
Destroy the given Texture object. | |
virtual void | destroyAllTextures (void)=0 |
Destroy all Texture objects. | |
virtual bool | isQueueingEnabled (void) const =0 |
Return whether queueing is enabled. | |
virtual float | getWidth (void) const =0 |
Return the current width of the display in pixels. | |
virtual float | getHeight (void) const =0 |
Return the current height of the display in pixels. | |
virtual Size | getSize (void) const =0 |
Return the size of the display in pixels. | |
virtual Rect | getRect (void) const =0 |
Return a Rect describing the screen. | |
virtual uint | getMaxTextureSize (void) const =0 |
Return the maximum texture size available. | |
virtual uint | getHorzScreenDPI (void) const =0 |
Return the horizontal display resolution dpi. | |
virtual uint | getVertScreenDPI (void) const =0 |
Return the vertical display resolution dpi. | |
void | resetZValue (void) |
Reset the z co-ordinate for rendering. | |
void | advanceZValue (void) |
Update the z co-ordinate for the next major UI element (window). | |
float | getCurrentZ (void) const |
return the current Z value to use (equates to layer 0 for this UI element). | |
float | getZLayer (uint layer) const |
return the z co-ordinate to use for the requested layer on the current GUI element. | |
const String & | getIdentifierString () const |
Return identification string for the renderer module. If the internal id string has not been set by the Renderer module creator, a generic string of "Unknown renderer" will be returned. | |
virtual ResourceProvider * | createResourceProvider (void) |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventDisplaySizeChanged |
Protected Attributes | |
ResourceProvider * | d_resourceProvider |
Holds the pointer to the ResourceProvider object. | |
String | d_identifierString |
String that holds some id information about the renderer. |
Objects derived from Renderer are the means by which the GUI system interfaces with specific rendering technologies. To use a rendering system or API to draw CEGUI imagery requires that an appropriate Renderer object be available.
|
Add a quad to the rendering queue. All clipping and other adjustments should have been made prior to calling this.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Update the z co-ordinate for the next major UI element (window).
|
|
Clears all queued quads from the render queue.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Create a Texture object using the given image file.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Creates a 'null' Texture object.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Destroy all Texture objects.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Destroy the given Texture object.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
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().
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
return the current Z value to use (equates to layer 0 for this UI element).
|
|
Return the current height of the display in pixels.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Return the horizontal display resolution dpi.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Return identification string for the renderer module. If the internal id string has not been set by the Renderer module creator, a generic string of "Unknown renderer" will be returned.
|
|
Return the maximum texture size available.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Return a Rect describing the screen.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Return the size of the display in pixels.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Return the vertical display resolution dpi.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Return the current width of the display in pixels.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
return the z co-ordinate to use for the requested layer on the current GUI element.
|
|
Return whether queueing is enabled.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
Reset the z co-ordinate for rendering.
|
|
Enable or disable the queueing of quads from this point on. This only affects queueing. If queueing is turned off, any calls to addQuad will cause the quad to be rendered directly. Note that disabling queueing 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 queueing had never been disabled.
Implemented in CEGUI::DirectX81Renderer, CEGUI::DirectX9Renderer, CEGUI::IrrlichtRenderer, and CEGUI::OpenGLRenderer. |
|
event that fires when the underlying display size had changed. It is important that all Renderer implementers fire this properly as the system itself subscribes to this event. |