Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GLUP::MatrixStack Class Reference

A Matrix stack. More...

#include <geogram_gfx/GLUP/GLUP_context.h>

Classes

struct  Matrix
 

Public Member Functions

 MatrixStack ()
 MatrixStack constructor.
 
GLdouble * top ()
 Gets the matrix on the top of the stack. More...
 
void push ()
 Pushes a copy of the top matrix.
 
void pop ()
 Removes a matrix from the top of the stack.
 

Static Public Attributes

static const int MAX_DEPTH =16
 Maximum number of matrices in a stack.
 

Detailed Description

A Matrix stack.

There are three matrix stacks in a context, for modelview matrices, projection matrices and texture coordinates.

Definition at line 276 of file GLUP_context.h.

Member Function Documentation

◆ top()

GLdouble* GLUP::MatrixStack::top ( )
inline

Gets the matrix on the top of the stack.

Returns
a pointer to the coefficients of the matrix.

Definition at line 297 of file GLUP_context.h.


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