reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofMatrixStack Class Reference

#include <ofMatrixStack.h>

Public Member Functions

 ofMatrixStack (const ofAppBaseWindow *window)
 
void setRenderSurface (const ofBaseDraws &fbo)
 
void setRenderSurfaceNoMatrixFlip (const ofBaseDraws &fbo)
 
void setRenderSurface (const ofAppBaseWindow &window)
 
void setOrientation (ofOrientation orientation, bool vFlip)
 
ofOrientation getOrientation () const
 
void viewport (float x, float y, float width, float height, bool vflip)
 
void nativeViewport (ofRectangle viewport)
 
ofRectangle getCurrentViewport () const
 
ofRectangle getNativeViewport () const
 
ofRectangle getFullSurfaceViewport () const
 
const glm::mat4 & getProjectionMatrix () const
 
const glm::mat4 & getViewInverse () const
 
const glm::mat4 & getViewMatrix () const
 
const glm::mat4 & getModelMatrix () const
 
const glm::mat4 & getModelViewMatrix () const
 
const glm::mat4 & getModelViewProjectionMatrix () const
 
const glm::mat4 & getTextureMatrix () const
 
const glm::mat4 & getCurrentMatrix () const
 
const glm::mat4 & getProjectionMatrixNoOrientation () const
 
const glm::mat4 & getOrientationMatrix () const
 
const glm::mat4 & getOrientationMatrixInverse () const
 
ofMatrixMode getCurrentMatrixMode () const
 
ofHandednessType getHandedness () const
 
bool isVFlipped () const
 
bool customMatrixNeedsFlip () const
 
void pushView ()
 
void popView ()
 
void pushMatrix ()
 
void popMatrix ()
 
void translate (float x, float y, float z=0)
 
void scale (float xAmnt, float yAmnt, float zAmnt=1)
 
void rotateRad (float radians, float vecX, float vecY, float vecZ)
 
void matrixMode (ofMatrixMode mode)
 
void loadIdentityMatrix (void)
 
void loadMatrix (const glm::mat4 &m)
 
void multMatrix (const glm::mat4 &m)
 
void loadViewMatrix (const glm::mat4 &matrix)
 
void multViewMatrix (const glm::mat4 &matrix)
 
void clearStacks ()
 
bool doesHardwareOrientation () const
 

Constructor & Destructor Documentation

◆ ofMatrixStack()

ofMatrixStack::ofMatrixStack ( const ofAppBaseWindow window)

Member Function Documentation

◆ clearStacks()

void ofMatrixStack::clearStacks ( )

◆ customMatrixNeedsFlip()

bool ofMatrixStack::customMatrixNeedsFlip ( ) const

◆ doesHardwareOrientation()

bool ofMatrixStack::doesHardwareOrientation ( ) const

◆ getCurrentMatrix()

const glm::mat4 & ofMatrixStack::getCurrentMatrix ( ) const

◆ getCurrentMatrixMode()

ofMatrixMode ofMatrixStack::getCurrentMatrixMode ( ) const

◆ getCurrentViewport()

ofRectangle ofMatrixStack::getCurrentViewport ( ) const

◆ getFullSurfaceViewport()

ofRectangle ofMatrixStack::getFullSurfaceViewport ( ) const

◆ getHandedness()

ofHandednessType ofMatrixStack::getHandedness ( ) const

◆ getModelMatrix()

const glm::mat4 & ofMatrixStack::getModelMatrix ( ) const

◆ getModelViewMatrix()

const glm::mat4 & ofMatrixStack::getModelViewMatrix ( ) const

◆ getModelViewProjectionMatrix()

const glm::mat4 & ofMatrixStack::getModelViewProjectionMatrix ( ) const

◆ getNativeViewport()

ofRectangle ofMatrixStack::getNativeViewport ( ) const

◆ getOrientation()

ofOrientation ofMatrixStack::getOrientation ( ) const

◆ getOrientationMatrix()

const glm::mat4 & ofMatrixStack::getOrientationMatrix ( ) const

◆ getOrientationMatrixInverse()

const glm::mat4 & ofMatrixStack::getOrientationMatrixInverse ( ) const

◆ getProjectionMatrix()

const glm::mat4 & ofMatrixStack::getProjectionMatrix ( ) const

◆ getProjectionMatrixNoOrientation()

const glm::mat4 & ofMatrixStack::getProjectionMatrixNoOrientation ( ) const

◆ getTextureMatrix()

const glm::mat4 & ofMatrixStack::getTextureMatrix ( ) const

◆ getViewInverse()

const glm::mat4 & ofMatrixStack::getViewInverse ( ) const

◆ getViewMatrix()

const glm::mat4 & ofMatrixStack::getViewMatrix ( ) const

◆ isVFlipped()

bool ofMatrixStack::isVFlipped ( ) const

◆ loadIdentityMatrix()

void ofMatrixStack::loadIdentityMatrix ( void  )

◆ loadMatrix()

void ofMatrixStack::loadMatrix ( const glm::mat4 &  m)

◆ loadViewMatrix()

void ofMatrixStack::loadViewMatrix ( const glm::mat4 &  matrix)

◆ matrixMode()

void ofMatrixStack::matrixMode ( ofMatrixMode  mode)

◆ multMatrix()

void ofMatrixStack::multMatrix ( const glm::mat4 &  m)

◆ multViewMatrix()

void ofMatrixStack::multViewMatrix ( const glm::mat4 &  matrix)

◆ nativeViewport()

void ofMatrixStack::nativeViewport ( ofRectangle  viewport)

◆ popMatrix()

void ofMatrixStack::popMatrix ( )

◆ popView()

void ofMatrixStack::popView ( )

◆ pushMatrix()

void ofMatrixStack::pushMatrix ( )

◆ pushView()

void ofMatrixStack::pushView ( )

◆ rotateRad()

void ofMatrixStack::rotateRad ( float  radians,
float  vecX,
float  vecY,
float  vecZ 
)

◆ scale()

void ofMatrixStack::scale ( float  xAmnt,
float  yAmnt,
float  zAmnt = 1 
)

◆ setOrientation()

void ofMatrixStack::setOrientation ( ofOrientation  orientation,
bool  vFlip 
)

◆ setRenderSurface() [1/2]

void ofMatrixStack::setRenderSurface ( const ofAppBaseWindow window)

◆ setRenderSurface() [2/2]

void ofMatrixStack::setRenderSurface ( const ofBaseDraws fbo)

◆ setRenderSurfaceNoMatrixFlip()

void ofMatrixStack::setRenderSurfaceNoMatrixFlip ( const ofBaseDraws fbo)

◆ translate()

void ofMatrixStack::translate ( float  x,
float  y,
float  z = 0 
)

◆ viewport()

void ofMatrixStack::viewport ( float  x,
float  y,
float  width,
float  height,
bool  vflip 
)

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