Wrapper for direct-state-access compatibility matrix operations. More...
#include </home/chochlik/devel/oglplus/include/oglplus/ext/EXT_direct_state_access/matrix.hpp>

Public Types | |
| typedef CompatibilityMatrixMode | Mode |
| The matrix mode enumeration. | |
Public Member Functions | |
| DSAMatrixEXT (Mode mode) | |
| Constructs a new compatibility DSA matrix. | |
| DSAMatrixEXT & | Push (void) |
| Pushes a matrix on the stack. More... | |
| DSAMatrixEXT & | Pop (void) |
| Pops a matrix from the stack. More... | |
| DSAMatrixEXT & | LoadIdentity (void) |
| Loads an identity matrix. More... | |
| DSAMatrixEXT & | Load (const Matrix< GLfloat, 4, 4 > &matrix) |
Loads the specified matrix. More... | |
| DSAMatrixEXT & | Load (const Matrix< GLdouble, 4, 4 > &matrix) |
Loads the specified matrix. More... | |
| DSAMatrixEXT & | Mult (const Matrix< GLfloat, 4, 4 > &matrix) |
Multiplies the current matrix by the specified matrix. More... | |
| DSAMatrixEXT & | Mult (const Matrix< GLdouble, 4, 4 > &matrix) |
Multiplies the current matrix by the specified matrix. More... | |
| DSAMatrixEXT & | Rotate (Angle< GLfloat > angle, const GLfloat x, const GLfloat y, const GLfloat z) |
| Applies rotation by angle around axis <x,y,z> to the current matrix. More... | |
| DSAMatrixEXT & | Rotate (Angle< GLfloat > angle, const Vector< GLfloat, 3 > &axis) |
| Applies rotation by angle around axis to the current matrix. More... | |
| DSAMatrixEXT & | Rotate (Angle< GLdouble > angle, const Vector< GLdouble, 3 > &axis) |
| Applies rotation by angle around axis to the current matrix. More... | |
| DSAMatrixEXT & | Scale (const GLfloat x, const GLfloat y, const GLfloat z) |
| Scales the current matrix. More... | |
| DSAMatrixEXT & | Scale (const Vector< GLfloat, 3 > &amount) |
| Scales the current matrix. More... | |
| DSAMatrixEXT & | Scale (const Vector< GLdouble, 3 > &amount) |
| Scales the current matrix. More... | |
| DSAMatrixEXT & | Translate (const GLfloat x, const GLfloat y, const GLfloat z) |
| Translates the current matrix. More... | |
| DSAMatrixEXT & | Translate (const Vector< GLfloat, 3 > &amount) |
| Translates the current matrix. More... | |
| DSAMatrixEXT & | Translate (const Vector< GLdouble, 3 > &amount) |
| Translates the current matrix. More... | |
| DSAMatrixEXT & | Ortho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_depth, GLdouble far_depth) |
| Makes an ortho-matrix from the current matrix. More... | |
| DSAMatrixEXT & | Frustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_depth, GLdouble far_depth) |
| Makes a frustum-matrix from the current matrix. More... | |
Wrapper for direct-state-access compatibility matrix operations.
Requires the GL_EXT_direct_state_access extension.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Frustum | ( | GLdouble | left, |
| GLdouble | right, | ||
| GLdouble | bottom, | ||
| GLdouble | top, | ||
| GLdouble | near_depth, | ||
| GLdouble | far_depth | ||
| ) |
Makes a frustum-matrix from the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Load | ( | const Matrix< GLfloat, 4, 4 > & | matrix | ) |
Loads the specified matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Load | ( | const Matrix< GLdouble, 4, 4 > & | matrix | ) |
Loads the specified matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::LoadIdentity | ( | void | ) |
Loads an identity matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Mult | ( | const Matrix< GLfloat, 4, 4 > & | matrix | ) |
Multiplies the current matrix by the specified matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Mult | ( | const Matrix< GLdouble, 4, 4 > & | matrix | ) |
Multiplies the current matrix by the specified matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Ortho | ( | GLdouble | left, |
| GLdouble | right, | ||
| GLdouble | bottom, | ||
| GLdouble | top, | ||
| GLdouble | near_depth, | ||
| GLdouble | far_depth | ||
| ) |
Makes an ortho-matrix from the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Pop | ( | void | ) |
Pops a matrix from the stack.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Push | ( | void | ) |
Pushes a matrix on the stack.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Rotate | ( | Angle< GLfloat > | angle, |
| const GLfloat | x, | ||
| const GLfloat | y, | ||
| const GLfloat | z | ||
| ) |
Applies rotation by angle around axis <x,y,z> to the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Rotate | ( | Angle< GLfloat > | angle, |
| const Vector< GLfloat, 3 > & | axis | ||
| ) |
Applies rotation by angle around axis to the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Rotate | ( | Angle< GLdouble > | angle, |
| const Vector< GLdouble, 3 > & | axis | ||
| ) |
Applies rotation by angle around axis to the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Scale | ( | const GLfloat | x, |
| const GLfloat | y, | ||
| const GLfloat | z | ||
| ) |
Scales the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Scale | ( | const Vector< GLfloat, 3 > & | amount | ) |
Scales the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Scale | ( | const Vector< GLdouble, 3 > & | amount | ) |
Scales the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Translate | ( | const GLfloat | x, |
| const GLfloat | y, | ||
| const GLfloat | z | ||
| ) |
Translates the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Translate | ( | const Vector< GLfloat, 3 > & | amount | ) |
Translates the current matrix.
| DSAMatrixEXT& oglplus::DSAMatrixEXT::Translate | ( | const Vector< GLdouble, 3 > & | amount | ) |
Translates the current matrix.