gl3n.ext.matrixstack
-
Declaration
structMatrixStack(T) if (is_matrix!T);A matrix stack similiar to OpenGLs glPushMatrix/glPopMatrix
-
Declaration
aliasMatrix= T;Holds the internal matrix type
-
Declaration
Matrixtop;The
topmatrix, the one you work with -
Declaration
size_trealloc_interval;If the stack is too small to hold more items, space for
realloc_intervalmore elements will be allocated -
Declaration
pure nothrow this(size_tdepth);Sets the stacks initial size to
depthelements -
Declaration
pure nothrow voidset(Matrixmatrix);Sets the top
matrix -
Declaration
pure nothrow voidpush();Pushes the top matrix on the stack and keeps a copy as the new top matrix
-
Declaration
pure nothrow voidpush(Matrixmatrix);Pushes the top
matrixon the stack and setsmatrixas the new topmatrix. -
Declaration
pure nothrow ref Matrixpop();Pops a matrix from the stack and sets it as top matrix. Also returns a reference to the new top matrix.
-
-
Declaration
pure nothrow MatrixStack!TmatrixStack(T)(size_tdepth= 16);Constructs a new stack with an initial size of
depthelements