#include <CamRenderer.h>
Data Structures | |
struct | state_type |
Public Member Functions | |
CamRenderer (RenderStateFlags globalstate, Shader *select0, Shader *select1, const Vector3 &viewer) | |
void | SetState (Shader *state, EStyle style) |
const EStyle | getStyle () const |
void | PushState () |
void | PopState () |
void | Highlight (EHighlightMode mode, bool bEnable=true) |
void | setLights (const LightList &lights) |
void | addRenderable (const OpenGLRenderable &renderable, const Matrix4 &world) |
void | render (const Matrix4 &modelview, const Matrix4 &projection) |
Private Attributes | |
std::vector< state_type > | m_state_stack |
RenderStateFlags | m_globalstate |
Shader * | m_state_select0 |
Shader * | m_state_select1 |
const Vector3 & | m_viewer |
Definition at line 6 of file CamRenderer.h.
CamRenderer::CamRenderer | ( | RenderStateFlags | globalstate, | |
Shader * | select0, | |||
Shader * | select1, | |||
const Vector3 & | viewer | |||
) | [inline] |
Definition at line 24 of file CamRenderer.h.
References m_state_stack.
void CamRenderer::addRenderable | ( | const OpenGLRenderable & | renderable, | |
const Matrix4 & | world | |||
) | [inline, virtual] |
Implements Renderer.
Definition at line 60 of file CamRenderer.h.
const EStyle CamRenderer::getStyle | ( | ) | const [inline, virtual] |
Implements Renderer.
Definition at line 39 of file CamRenderer.h.
void CamRenderer::Highlight | ( | EHighlightMode | mode, | |
bool | bEnable = true | |||
) | [inline, virtual] |
Implements Renderer.
Definition at line 52 of file CamRenderer.h.
void CamRenderer::PopState | ( | ) | [inline, virtual] |
Implements Renderer.
Definition at line 47 of file CamRenderer.h.
void CamRenderer::PushState | ( | ) | [inline, virtual] |
Implements Renderer.
Definition at line 43 of file CamRenderer.h.
void CamRenderer::render | ( | const Matrix4 & | modelview, | |
const Matrix4 & | projection | |||
) | [inline] |
Definition at line 72 of file CamRenderer.h.
void CamRenderer::setLights | ( | const LightList & | lights | ) | [inline, virtual] |
Reimplemented from Renderer.
Definition at line 56 of file CamRenderer.h.
void CamRenderer::SetState | ( | Shader * | state, | |
EStyle | style | |||
) | [inline, virtual] |
Implements Renderer.
Definition at line 32 of file CamRenderer.h.
RenderStateFlags CamRenderer::m_globalstate [private] |
Definition at line 18 of file CamRenderer.h.
Shader* CamRenderer::m_state_select0 [private] |
Definition at line 19 of file CamRenderer.h.
Shader* CamRenderer::m_state_select1 [private] |
Definition at line 20 of file CamRenderer.h.
std::vector<state_type> CamRenderer::m_state_stack [private] |
Definition at line 17 of file CamRenderer.h.
Referenced by CamRenderer().
const Vector3& CamRenderer::m_viewer [private] |
Definition at line 21 of file CamRenderer.h.