| GL Studio C++ Runtime API

Public Member Functions | Public Attributes | List of all members
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.
GlsMatrixType * | projMatrix
| The projection matrix.
GlsMatrixType * | modelMatrix
| The modelview matrix.

## Detailed Description

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

## Constructor & Destructor Documentation

## ◆ OpenGLMatrices() [1/3]

OpenGLMatrices | ( |  | ) |

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

  src | The 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

  view | The viewport matrix to use.
  proj | The projection matrix to use.
  model | The modelview matrix to use.

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

- util.h