xoreos
0.0.5
|
#include <renderman.h>
Public Types | |
enum | SortingHints { SORT_HINT_NORMAL = 0, SORT_HINT_ALLDEPTH = 1 } |
Public Member Functions | |
RenderManager () | |
~RenderManager () | |
void | setSortingHint (SortingHints hint) |
void | setCameraReference (const glm::vec3 &reference) |
void | queueRenderable (Shader::ShaderRenderable *renderable, const glm::mat4 *transform, float alpha) |
void | sort () |
void | render () |
void | clear () |
void | init () |
void | deinit () |
void | cleanup () |
Additional Inherited Members | |
Static Public Member Functions inherited from Common::Singleton< RenderManager > | |
static RenderManager & | instance () |
static void | destroy () |
Protected Types inherited from Common::Singleton< RenderManager > | |
typedef RenderManager | SingletonBaseType |
Protected Member Functions inherited from Common::Singleton< RenderManager > | |
Singleton () | |
virtual | ~Singleton () |
Definition at line 39 of file renderman.h.
Enumerator | |
---|---|
SORT_HINT_NORMAL | |
SORT_HINT_ALLDEPTH |
Definition at line 42 of file renderman.h.
Graphics::Render::RenderManager::RenderManager | ( | ) |
Definition at line 35 of file renderman.cpp.
Graphics::Render::RenderManager::~RenderManager | ( | ) |
Definition at line 38 of file renderman.cpp.
|
inline |
Definition at line 64 of file renderman.h.
void Graphics::Render::RenderManager::clear | ( | ) |
Definition at line 102 of file renderman.cpp.
References _queueColorSolidDecal, _queueColorSolidPrimary, _queueColorSolidSecondary, _queueColorTransparentPrimary, _queueColorTransparentSecondary, and Graphics::Render::RenderQueue::clear().
|
inline |
Definition at line 63 of file renderman.h.
|
inline |
Definition at line 62 of file renderman.h.
void Graphics::Render::RenderManager::queueRenderable | ( | Shader::ShaderRenderable * | renderable, |
const glm::mat4 * | transform, | ||
float | alpha | ||
) |
Definition at line 53 of file renderman.cpp.
References _queueColorSolidDecal, _queueColorSolidPrimary, _queueColorSolidSecondary, _queueColorTransparentPrimary, _queueColorTransparentSecondary, Graphics::VertexBuffer::getCount(), Graphics::Shader::ShaderMaterial::getFlags(), Graphics::Shader::ShaderRenderable::getMaterial(), Graphics::Shader::ShaderRenderable::getMesh(), Graphics::Mesh::Mesh::getVertexBuffer(), Graphics::Shader::ShaderMaterial::MATERIAL_DECAL, Graphics::Shader::ShaderMaterial::MATERIAL_OPAQUE, Graphics::Shader::ShaderMaterial::MATERIAL_TRANSPARENT, Graphics::Shader::ShaderMaterial::MATERIAL_TRANSPARENT_B, and Graphics::Render::RenderQueue::queueItem().
void Graphics::Render::RenderManager::render | ( | ) |
Definition at line 94 of file renderman.cpp.
References _queueColorSolidDecal, _queueColorSolidPrimary, _queueColorSolidSecondary, _queueColorTransparentPrimary, _queueColorTransparentSecondary, and Graphics::Render::RenderQueue::render().
void Graphics::Render::RenderManager::setCameraReference | ( | const glm::vec3 & | reference | ) |
Definition at line 45 of file renderman.cpp.
References _queueColorSolidDecal, _queueColorSolidPrimary, _queueColorSolidSecondary, _queueColorTransparentPrimary, _queueColorTransparentSecondary, and Graphics::Render::RenderQueue::setCameraReference().
void Graphics::Render::RenderManager::setSortingHint | ( | SortingHints | hint | ) |
Definition at line 41 of file renderman.cpp.
References _sortingHints.
void Graphics::Render::RenderManager::sort | ( | ) |
Definition at line 74 of file renderman.cpp.
References _queueColorSolidDecal, _queueColorSolidPrimary, _queueColorSolidSecondary, _queueColorTransparentPrimary, _queueColorTransparentSecondary, _sortingHints, SORT_HINT_ALLDEPTH, SORT_HINT_NORMAL, Graphics::Render::RenderQueue::sortDepth(), and Graphics::Render::RenderQueue::sortShader().
|
private |
Definition at line 69 of file renderman.h.
Referenced by clear(), queueRenderable(), render(), setCameraReference(), and sort().
|
private |
Definition at line 67 of file renderman.h.
Referenced by clear(), queueRenderable(), render(), setCameraReference(), and sort().
|
private |
Definition at line 68 of file renderman.h.
Referenced by clear(), queueRenderable(), render(), setCameraReference(), and sort().
|
private |
Definition at line 70 of file renderman.h.
Referenced by clear(), queueRenderable(), render(), setCameraReference(), and sort().
|
private |
Definition at line 71 of file renderman.h.
Referenced by clear(), queueRenderable(), render(), setCameraReference(), and sort().
|
private |
Definition at line 72 of file renderman.h.
|
private |
Definition at line 74 of file renderman.h.
Referenced by setSortingHint(), and sort().