Abstract class defining the interface for Renderer objects. More...
Inherits GUI::EventSet.
Public Member Functions | |
| Texture | createTexture () |
| Creates a 'null' Texture object. | |
| Texture | createTexture (string filename, string resourceGroup) |
| Create a Texture object using the given image file. | |
| Texture | createTexture (float size) |
| Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square. | |
| void | destroyTexture (Texture texture) |
| Destroy the given Texture object. | |
| void | destroyAllTextures () |
| Destroy all Texture objects. | |
| bool | isQueueingEnabled () |
| Return whether queueing is enabled. | |
| float | getWidth () |
| Return the current width of the display in pixels. | |
| float | getHeight () |
| Return the current height of the display in pixels. | |
| Size | getSize () |
| Return the size of the display in pixels. | |
| Rect | getRect () |
| Return a Rect describing the screen. | |
| int | getMaxTextureSize () |
| Return the maximum texture size available. | |
| int | getHorzScreenDPI () |
| Return the horizontal display resolution dpi. | |
| int | getVertScreenDPI () |
| Return the vertical display resolution dpi. | |
| float | getCurrentZ () |
| return the current Z value to use (equates to layer 0 for this UI element). | |
| float | getZLayer (int layer) |
| return the z co-ordinate to use for the requested layer on the current GUI element. | |
Public Member Functions inherited from GUI::EventSet | |
| void | addEvent (string name) |
| Add a new Event to the EventSet with the given name. | |
| void | removeEvent (string name) |
| Removes the Event with the given name. All connections to the event are disconnected. | |
| void | removeAllEvents () |
| Remove all Event objects from the EventSet. | |
| bool | isEventPresent (string name) |
| Checks to see if an Event with the given name is present in the EventSet. | |
| EventConnection | subscribeEvent (string name, string subscriber_name) |
| Subscribes the named Event to a scripted funtion. | |
| void | fireEvent (string name, EventArgs args, string eventNamespace="") |
| Fires the named event passing the given EventArgs object. | |
| bool | isMuted () |
| Return whether the EventSet is muted or not. | |
| void | setMutedState (bool setting) |
| Set the mute state for this EventSet. | |
Additional Inherited Members | |
Public Attributes inherited from GUI::EventSet | |
| Event | Event |
| Can be used to iterate over the events currently added to the EventSet. | |
Abstract class defining the interface for Renderer objects.
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.
| Texture GUI::Renderer::createTexture | ( | ) |
| Texture GUI::Renderer::createTexture | ( | string | filename, |
| string | resourceGroup | ||
| ) |
Create a Texture object using the given image file.
| filename | String object that specifies the path and filename of the image file to use when creating the texture. |
| resourceGroup | Resource group identifier to be passed to the resource provider when loading the texture file. |
| Texture GUI::Renderer::createTexture | ( | float | size | ) |
Create a Texture object with the given pixel dimensions as specified by size. NB: Textures are always square.
| size | float value that specifies the size to use for the width and height when creating the new texture. |
| void GUI::Renderer::destroyTexture | ( | Texture | texture | ) |
| void GUI::Renderer::destroyAllTextures | ( | ) |
Destroy all Texture objects.
| bool GUI::Renderer::isQueueingEnabled | ( | ) |
Return whether queueing is enabled.
| float GUI::Renderer::getWidth | ( | ) |
Return the current width of the display in pixels.
| float GUI::Renderer::getHeight | ( | ) |
Return the current height of the display in pixels.
| Size GUI::Renderer::getSize | ( | ) |
Return the size of the display in pixels.
| Rect GUI::Renderer::getRect | ( | ) |
| int GUI::Renderer::getMaxTextureSize | ( | ) |
Return the maximum texture size available.
| int GUI::Renderer::getHorzScreenDPI | ( | ) |
Return the horizontal display resolution dpi.
| int GUI::Renderer::getVertScreenDPI | ( | ) |
Return the vertical display resolution dpi.
| float GUI::Renderer::getCurrentZ | ( | ) |
return the current Z value to use (equates to layer 0 for this UI element).
| float GUI::Renderer::getZLayer | ( | int | layer | ) |
return the z co-ordinate to use for the requested layer on the current GUI element.
| layer | Specifies the layer to return the Z co-ordinate for. Each GUI element can use up to 10 layers, so valid inputs are 0 to 9 inclusive. If you specify an invalid value for layer, results are undefined. |
1.8.1.1