Replaces the OpenGL matrix stack.
More...
#include <MatrixManager.h>
|
| MatrixManager () |
|
glm::mat4 | GetCurrentMatrix () const |
|
glm::mat4 | GetProjectionMatrix () const |
|
glm::mat4 | GetModelViewMatrix () const |
|
glm::mat4 | GetModelViewProjectionMatrix () const |
|
void | SetCurrentMatrix (const glm::mat4 m) |
|
void | MatrixModeProjection () |
|
void | MatrixModeModelView () |
|
void | PushMatrix () |
|
void | PopMatrix () |
|
void | LoadMatrixd (const double *m) |
|
void | GetDoublev (Mode mode, double *m) const |
|
void | LoadIdentity () |
|
void | Translate (float x, float y, float z) |
|
void | Scale (float x, float y, float z) |
|
void | Rotate (float angle, float x, float y, float z) |
|
void | Perspective (float fovy, float aspect, float zNear, float zFar) |
|
void | Ortho (float left, float right, float bottom, float top) |
|
void | Ortho (float left, float right, float bottom, float top, float zNear, float zFar) |
|
glm::vec2 | ProjectToScreen (float x, float y, float z) const |
|
glm::vec2 | ProjectToScreen (const glm::vec3 &v) const |
|
float | GetProjectionAspectRatio () const |
|
Replaces the OpenGL matrix stack.
Most functions are one to one replacements and have the same effects as their OpenGL or GLUT equivalents.
- Author
- Stanislaw Jaroszynski
- Date
- August, 2018
Definition at line 27 of file MatrixManager.h.
◆ Mode
◆ MatrixManager()
VAPoR::MatrixManager::MatrixManager |
( |
| ) |
|
◆ GetCurrentMatrix()
glm::mat4 VAPoR::MatrixManager::GetCurrentMatrix |
( |
| ) |
const |
◆ GetDoublev()
void VAPoR::MatrixManager::GetDoublev |
( |
Mode |
mode, |
|
|
double * |
m |
|
) |
| const |
◆ GetModelViewMatrix()
glm::mat4 VAPoR::MatrixManager::GetModelViewMatrix |
( |
| ) |
const |
◆ GetModelViewProjectionMatrix()
glm::mat4 VAPoR::MatrixManager::GetModelViewProjectionMatrix |
( |
| ) |
const |
◆ GetProjectionAspectRatio()
float VAPoR::MatrixManager::GetProjectionAspectRatio |
( |
| ) |
const |
◆ GetProjectionMatrix()
glm::mat4 VAPoR::MatrixManager::GetProjectionMatrix |
( |
| ) |
const |
◆ LoadIdentity()
void VAPoR::MatrixManager::LoadIdentity |
( |
| ) |
|
◆ LoadMatrixd()
void VAPoR::MatrixManager::LoadMatrixd |
( |
const double * |
m | ) |
|
◆ MatrixModeModelView()
void VAPoR::MatrixManager::MatrixModeModelView |
( |
| ) |
|
◆ MatrixModeProjection()
void VAPoR::MatrixManager::MatrixModeProjection |
( |
| ) |
|
◆ Ortho() [1/2]
void VAPoR::MatrixManager::Ortho |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top |
|
) |
| |
◆ Ortho() [2/2]
void VAPoR::MatrixManager::Ortho |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
zNear, |
|
|
float |
zFar |
|
) |
| |
◆ Perspective()
void VAPoR::MatrixManager::Perspective |
( |
float |
fovy, |
|
|
float |
aspect, |
|
|
float |
zNear, |
|
|
float |
zFar |
|
) |
| |
◆ PopMatrix()
void VAPoR::MatrixManager::PopMatrix |
( |
| ) |
|
◆ ProjectToScreen() [1/2]
glm::vec2 VAPoR::MatrixManager::ProjectToScreen |
( |
const glm::vec3 & |
v | ) |
const |
◆ ProjectToScreen() [2/2]
glm::vec2 VAPoR::MatrixManager::ProjectToScreen |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| const |
◆ PushMatrix()
void VAPoR::MatrixManager::PushMatrix |
( |
| ) |
|
◆ Rotate()
void VAPoR::MatrixManager::Rotate |
( |
float |
angle, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ Scale()
void VAPoR::MatrixManager::Scale |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ SetCurrentMatrix()
void VAPoR::MatrixManager::SetCurrentMatrix |
( |
const glm::mat4 |
m | ) |
|
◆ Translate()
void VAPoR::MatrixManager::Translate |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ Aspect
float VAPoR::MatrixManager::Aspect |
◆ Far
float VAPoR::MatrixManager::Far |
◆ FOV
float VAPoR::MatrixManager::FOV |
◆ Near
float VAPoR::MatrixManager::Near |
The documentation for this class was generated from the following file: