Allolib
1.0
C++ Components For Interactive Multimedia
|
RenderManager class. More...
Public Member Functions | |
void | multModelMatrix (const Matrix4f &m) |
Multiply current matrix. | |
void | multViewMatrix (const Matrix4f &m) |
void | multProjMatrix (const Matrix4f &m) |
Matrix4f | modelMatrix () const |
Matrix4f | viewMatrix () const |
Matrix4f | projMatrix () const |
void | modelMatrix (const Matrix4f &m) |
void | viewMatrix (const Matrix4f &m) |
void | projMatrix (const Matrix4f &m) |
void | pushModelMatrix () |
void | pushViewMatrix () |
void | pushProjMatrix () |
void | pushModelMatrix (const Matrix4f &m) |
void | pushViewMatrix (const Matrix4f &m) |
void | pushProjMatrix (const Matrix4f &m) |
void | popModelMatrix () |
void | popViewMatrix () |
void | popProjMatrix () |
void | resetModelMatrixStack () |
void | resetViewMatrixStack () |
void | resetProjMatrixStack () |
void | resetMatrixStack () |
void | pushMatrix () |
Push current matrix stack. | |
void | pushMatrix (const Matrix4f &m) |
void | popMatrix () |
Pop current matrix stack. | |
void | loadIdentity () |
Set current matrix to identity. | |
void | translate (float x, float y, float z=0.) |
Translate current matrix. | |
template<class T > | |
void | translate (const Vec< 3, T > &v) |
Translate current matrix. | |
template<class T > | |
void | translate (const Vec< 2, T > &v) |
Translate current matrix. | |
void | rotate (float angle, float x=0., float y=0., float z=1.) |
void | rotate (const Quatf &q) |
Rotate current matrix. | |
void | rotate (const Quatd &q) |
Rotate current matrix. | |
template<class T > | |
void | rotate (float angle, const Vec< 3, T > &axis) |
void | scale (float x, float y, float z=1.) |
Scale current matrix along each dimension. | |
void | scale (float s) |
Scale current matrix uniformly. | |
template<class T > | |
void | scale (const Vec< 3, T > &v) |
Scale current matrix along each dimension. | |
template<class T > | |
void | scale (const Vec< 2, T > &v) |
Scale current matrix along each dimension. | |
void | viewport (int left, int bottom, int width, int height) |
Set viewport. | |
void | viewport (const Viewport &v) |
Viewport | viewport () |
void | pushViewport () |
void | popViewport () |
void | pushViewport (int l, int b, int w, int h) |
void | pushViewport (const Viewport &v) |
void | pushViewport (int w, int h) |
void | framebuffer (EasyFBO &easyFBO) |
void | framebuffer (FBO &fbo) |
void | framebuffer (unsigned int id) |
unsigned int | framebuffer () |
void | pushFramebuffer () |
void | popFramebuffer () |
void | pushFramebuffer (EasyFBO &f) |
void | pushFramebuffer (FBO &f) |
void | pushFramebuffer (unsigned int f) |
void | shader (ShaderProgram &s) |
ShaderProgram & | shader () |
ShaderProgram * | shaderPtr () |
virtual void | camera (Viewpoint const &v) |
virtual void | camera (Viewpoint::SpecialType v) |
void | pushCamera () |
void | popCamera () |
void | pushCamera (Viewpoint const &v) |
void | pushCamera (Viewpoint::SpecialType v) |
virtual void | update () |
void | draw (VAOMesh &mesh) |
void | draw (EasyVAO &vao) |
void | draw (const Mesh &mesh) |
void | draw (Mesh &&mesh) |
Protected Attributes | |
ShaderProgram * | mShaderPtr = nullptr |
std::unordered_map< unsigned int, int > | modelviewLocs |
std::unordered_map< unsigned int, int > | projLocs |
bool | mShaderChanged = false |
MatrixStack | mViewStack |
MatrixStack | mProjStack |
MatrixStack | mModelStack |
bool | mMatChanged = false |
ViewportStack | mViewportStack |
EasyVAO | mInternalVAO |
FBOStack | mFBOStack |
RenderManager class.
Render manager handles basic rendering states
!. writing shader for al::RenderManager
Definition at line 98 of file al_RenderManager.hpp.
|
inline |
Rotate current matrix
[in] | angle | angle, in degrees |
[in] | axis | rotation axis |
Definition at line 213 of file al_RenderManager.hpp.
void al::RenderManager::rotate | ( | float | angle, |
float | x = 0. , |
||
float | y = 0. , |
||
float | z = 1. |
||
) |
Rotate current matrix
[in] | angle | angle, in degrees |
[in] | x | x component of rotation axis |
[in] | y | y component of rotation axis |
[in] | z | z component of rotation axis |