#include <Graphics.h>
Description
The central class for rendering.
All user requests or rendering are done through this class. Users may draw 2D and 3D primitives upon request, alter the 2D and 3D viewing transformations, load 2D and 3D visual assets and more.
Static Functions | |
static Renderer * | GetRenderer () |
static void | SetRenderer (Renderer *) |
2D Drawing | |
All 2D drawing operations are described here. Often, 2D drawing will require a Dynacoe::Vector, which has 3 components. In these cases, the Z-component is ignored. In Dynacoe, the origin 0,0 is located at the top-left of the screen, and with 2D drawing, all positions are in device coordinates, or pixels. | |
static void | Draw (Render2D &) |
3D Drawing | |
The only way to draw 3D geometry is through RenderMesh instances. The aspect mesh determin's how the geometry will be drawn. | |
static void | Draw (RenderMesh &) |
Manual drawing | |
If you want to force a frame draw, first clear the buffer, draw the scene, then commit the changes to the screen | |
static void | Commit () |
static void | DrawEachFrame (bool doIt) |
static bool | DrawEachFrame () |
Screen Options | |
The functions here change how information on the screen is displayed. | |
static void | EnableFiltering (bool doIt) |
static void | SetCamera3D (Camera &) |
static void | SetCamera2D (Camera &) |
static void | SetRenderCamera (Camera &) |
static Camera & | GetCamera3D () |
static Camera & | GetCamera2D () |
static Camera & | GetRenderCamera () |
Member Function Documentation
|
static |
Draws an Aspect to the current display.
|
static |
Draws an Aspect to the current display.
|
static |
Forces the rendered scene to be drawn on the screen. This is normally done for you.
|
static |
Sets whether or not to automatically draw, commit, and clear.
|
static |
Returns whether each frame is being drawn, updated, and swapped automatically by Dynacoe or not.
|
static |
Retrieve the Renderer instance.
Returns a pointer to the currently active underlying renderer currently being used by the graphics plugin. You normally will not need to use such a thing, but it may come in handy.
|
static |
Sets the current Renderer instance.
All subsequent commands will utilize the given renderer to perform drawing operations. You normally will not need to use this , but it may come in handy.
|
static |
Disables or enables bilinear filtering of Images during rendering. Bilinear filtering makes stratched images look less grainy. The default is not to enable.
|
static |
Sets the current camera to view from for 3D renderings.
If invalid, the current camera is not changed.
|
static |
Sets the current camera to view from for 2D renderings.
If invalid, the current camera is not changed.
|
static |
Sets the current camera that processes all visuals and hands them to the display i.e. the window.
If invalid, the current camera is not changed.
|
static |
Returns the current cameras.
The documentation for this class was generated from the following file:
- /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Modules/Graphics.h