![]() |
Oficina Framework
1.3
Games Framework
|
Groups rendering-related controls. Use this to allocate and deallocate textures accelerated by GPU, and also for drawing textures or primitives onscreen. More...
#include <RenderingSystem.hpp>
Classes | |
| class | Animation |
| Represents an Animation, a set of controls for animating objects using SpriteSheets. More... | |
| class | Font |
| Represents a Font, a texture with monospace characters to be used to draw text onscreen. More... | |
| class | FrameBuffer |
| Describes a Frame Buffer object. More... | |
| class | IRendererObject |
| Interface for GPU-related objects. More... | |
| class | RenderBuffer |
| class | SpriteSheet |
| Represents a Sprite Sheet, a texture containing frames used for animating objects such as characters. More... | |
| class | Texture |
| Represents a texture. Use RenderingSystem::TexturePool to allocate a new Texture. More... | |
| class | TexturePool |
| Represents a structure that can manage the allocation and deallocation of textures. More... | |
Public Types | |
| enum | RenderProperty { RENDER_NORMALLY, RENDER_FLIP_X, RENDER_FLIP_Y, RENDER_FLIP_BOTH } |
| Rendering properties to be used. More... | |
| enum | RenderEffect { MODULATE_EFFECT, REPLACE_EFFECT, CHROMAKEY_EFFECT, INVERSION_EFFECT, LIGHT_EFFECT } |
| Rendering effects to be used. More... | |
Static Public Member Functions | |
| static void | glClearColorM (ColorM c) |
| glClearColor equivalent for a color mask (color or (color)ColorDef) More... | |
| static void | glClearAccumM (ColorM c) |
| glClearAccum equivalent for a color mask (color or (color)ColorDef) More... | |
| static void | glColorM (ColorM c, float transparency) |
| glColor equivalent for a color mask (color or (color)ColorDef) More... | |
| static void | glColorM (ColorM c) |
| glColor equivalent for a color mask (color or (color)ColorDef) More... | |
| static void | SetCameraPosition (vec2 CameraCenter) |
| Sets the position of the current viewport. More... | |
| static vec2 | GetCameraPosition () |
| Gets the central camera position. More... | |
| static vec2 | GetViewportPosition () |
| Gets the viewport position. More... | |
| static void | init () |
| Initializes the OpenGL renderer. More... | |
| static void | dispose () |
| Disposes the active textures and etc. More... | |
| static void | SetViewportSize (vec2dw size) |
| Sets the size of the viewport. More... | |
| static vec2dw | GetViewportSize () |
| Gets the size of the viewport. More... | |
| static void | SetResolution (vec2dw res) |
| Sets the resolution for the application. More... | |
| static vec2dw | GetResolution () |
| Gets the current application resolution. More... | |
| static void | glTranslateToViewportPos () |
| Translates viewport to current camera position. More... | |
| static float | GetZoomFactor () |
| Gets the camera zoom factor. More... | |
| static void | SetZoomFactor (float value) |
| Sets the camera zoom factor. More... | |
| static void | DrawRectangle (vec2 Position, vec2 Size, float angle, ColorDef Color, float transparency) |
| Draws a rectangle on screen. More... | |
| static void | DrawTriangle (vec2 BaricenterPosition, float HalfWidth, float HalfHeight, float angle, ColorDef Color, float transparency) |
| Draws an equilateral triangle on screen. More... | |
| static void | DrawTriangle (vec2 BaricenterPosition, vec2 Vertex1, vec2 Vertex2, vec2 Vertex3, float angle, ColorDef Color, float transparency) |
| Draws an triangle on screen. More... | |
| static void | DrawTriangle (vec2 BaricenterPosition, vec2 Vertices[3], float angle, ColorDef Color, float transparency) |
| Draws an triangle on screen. More... | |
| static void | SetLinearFiltering (bool state) |
| Disables or enables the state of linear filtering. More... | |
| static bool | GetLinearFilteringState () |
| Gets the state of linear filtering. More... | |
| static bool | IsARBDebugActive () |
| Checks for ARB debug (only works with DEBUG_ENABLED define). More... | |
| static void | CreateDefaultBuffer () |
| Creates the default buffer. Normally used when resizing the window. More... | |
| static void | DestroyDefaultBuffer () |
| Destroys the default buffer. Normally used when resizing the window. More... | |
| static FrameBuffer * | GetDefaultBuffer () |
| Gets the default buffer where the scene is rendered to. More... | |
Groups rendering-related controls. Use this to allocate and deallocate textures accelerated by GPU, and also for drawing textures or primitives onscreen.
Rendering effects to be used.
|
static |
Creates the default buffer. Normally used when resizing the window.
|
static |
Destroys the default buffer. Normally used when resizing the window.
|
static |
Disposes the active textures and etc.
|
static |
Draws a rectangle on screen.
| Position | Position of the upper left corner of the rectangle on screen. |
| Size | Size of the rectangle. |
| angle | Angle of the rectangle around the upper left corner, in degrees. Defaults to 0.0f. |
| Color | Color of the rectangle. |
| transparency | Alpha ratio of the rectangle. Defaults to 1.0f. |
|
static |
Draws an equilateral triangle on screen.
| BaricenterPosition | Position of the exact triangle center. |
| HalfWidth | Half size of bottom edge's length. |
| HalfHeight | Half of the size from the straight line described from top vertex to bottom edge. |
| angle | Angle for turning the triangle towards baricenter, in degrees. Defaults to 0.0f. |
| Color | Color of the triangle. |
| transparency | Alpha ratio of the rectangle. Defaults to 1.0f. |
|
static |
Draws an triangle on screen.
| BaricenterPosition | Position of the exact triangle center. |
| Vertex1 | First vertex of the triangle. |
| Vertex2 | Second vertex of the triangle. |
| Vertex3 | Third vertex of the triangle. |
| angle | Angle for turning the triangle towards baricenter, in degrees. Defaults to 0.0f. |
| Color | Color of the triangle. |
| transparency | Alpha ratio of the rectangle. Defaults to 1.0f. |
|
static |
Draws an triangle on screen.
| BaricenterPosition | Position of the exact triangle center. |
| Vertices | Vertices of the triangle. |
| angle | Angle for turning the triangle towards baricenter, in degrees. Defaults to 0.0f. |
| Color | Color of the triangle. |
| transparency | Alpha ratio of the rectangle. Defaults to 1.0f. |
|
static |
Gets the central camera position.
|
static |
Gets the default buffer where the scene is rendered to.
|
static |
Gets the state of linear filtering.
|
static |
Gets the current application resolution.
|
static |
Gets the viewport position.
|
static |
Gets the size of the viewport.
|
static |
Gets the camera zoom factor.
|
static |
glClearAccum equivalent for a color mask (color or (color)ColorDef)
| c | Color to fill the accumulation buffer after cleaning it. |
|
static |
glClearColor equivalent for a color mask (color or (color)ColorDef)
| c | Color to fill the back buffer after cleaning it. |
|
static |
glColor equivalent for a color mask (color or (color)ColorDef)
| c | Color to bind to the next vertex (before the call of another glColor function). |
| transparency | Alpha ratio of the color. |
|
static |
glColor equivalent for a color mask (color or (color)ColorDef)
| c | Color to bind to the next vertex (before the call of another glColor function). |
|
static |
Translates viewport to current camera position.
|
static |
Initializes the OpenGL renderer.
|
static |
Checks for ARB debug (only works with DEBUG_ENABLED define).
|
static |
Sets the position of the current viewport.
| CameraCenter | Float-precision vec2 camera center position. |
|
static |
Disables or enables the state of linear filtering.
| state | Whether linear filtering should be active or inactive. |
|
static |
Sets the resolution for the application.
| res | Desired resolution. |
|
static |
Sets the size of the viewport.
| size | New size for the viewport. |
|
static |
Sets the camera zoom factor.
| value | Zoom factor to be given to camera. 1.0f equals 100%. |