GL Studio C++ Runtime API
OpenGLMatrices Class Reference

Class to contain current OpenGL view, projection and draw matrices. More...

#include <util.h>

Public Member Functions

 OpenGLMatrices ()
 
 OpenGLMatrices (const OpenGLMatrices &src)
 
 OpenGLMatrices (int *view, GlsMatrixType *proj, GlsMatrixType *model)
 
 ~OpenGLMatrices ()
 Destructor.
 
void GetCurrent ()
 Retrieves the current OpenGL Matrices from the OpenGL Subsystem.
 

Public Attributes

int * viewMatrix
 The viewport matrix.
 
GlsMatrixTypeprojMatrix
 The projection matrix.
 
GlsMatrixTypemodelMatrix
 The modelview matrix.
 

Detailed Description

Class to contain current OpenGL view, projection and draw matrices.

Constructor & Destructor Documentation

◆ OpenGLMatrices() [1/3]

Default constructor. Keeps everything NULL.

◆ OpenGLMatrices() [2/3]

OpenGLMatrices ( const OpenGLMatrices src)

Copy constructor.

Note
Pointers are copied as-is, copies of the data are NOT made.
Parameters
srcThe object to copy from.

◆ OpenGLMatrices() [3/3]

OpenGLMatrices ( int *  view,
GlsMatrixType proj,
GlsMatrixType model 
)

Another constructor.

Note
Pointers are copied as-is, copies of the data are NOT made.
Parameters
viewThe viewport matrix to use.
projThe projection matrix to use.
modelThe modelview matrix to use.

The documentation for this class was generated from the following file: