Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

Functions
Matrix Functions
Cross-Platform OpenGL Support

## Functions
void | dglLoadMatrix (const MatrixF *m)
| loads matrix "m" into the current matrix mode More...
void | dglMultMatrix (const MatrixF *m)
| multiplies the current transformation matrix by matrix "m" More...
void | dglGetModelview (MatrixF *m)
| returns the current modelview matrix More...
void | dglGetProjection (MatrixF *m)
| returns the current projection matrix More...

## Detailed Description

These functions manipulate the current matrix. The current matrix could be modelivew, projection, or texture

Note
  Make sure you specify which matrix you want to manipulate with a call to glMatrixMode(enum matrix); before calling dglLoadMatrix() or dglMultMatrix()

## Function Documentation

void dglGetModelview | ( | MatrixF * | m | ) |

returns the current modelview matrix

void dglGetProjection | ( | MatrixF * | m | ) |

returns the current projection matrix

void dglLoadMatrix | ( | const MatrixF * | m | ) |

loads matrix "m" into the current matrix mode

void dglMultMatrix | ( | const MatrixF * | m | ) |

multiplies the current transformation matrix by matrix "m"