OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
Public Types | Public Member Functions | List of all members
Engine::DrawEvent Class Reference

The DrawEvent - event class. More...

#include <drawevent.h>

Public Types

enum  MATRICEN { PRO_ORTHO, PRO_PROJECTION, PRO_UNKNOWN }
 

Public Member Functions

void setClipDistance (const Vector4f &clip_distance)
 
void setProjection (const glm::mat4 &matrix, MATRICEN mode)
 setProjection More...
 
void setWorldView (const glm::mat4 &matrix)
 setWorldView More...
 
void setModelMatrix (const glm::mat4 &matrix)
 setModelView More...
 
void setTexture (const glm::mat4 &matrix)
 setTexture More...
 
void setShadow (const ShadowEvent &event)
 setShadow More...
 
MATRICEN getProjectionMode (void) const
 getProjectionMode More...
 
bool hasProjection (void) const
 
bool hasWorldView (void) const
 
bool hasModel (void) const
 
bool hasTexture (void) const
 
bool hasShadowEvent (void) const
 
glm::mat4 getProjection (void) const
 
glm::mat4 getWorldView (void) const
 
glm::mat4 getModelMatrix (void) const
 
glm::mat4 getTextureMatrix (void) const
 
const ShadowEvent getShadowEvent (void) const
 
const Vector4f getClipDistance (void) const
 

Detailed Description

The DrawEvent - event class.

Member Function Documentation

DrawEvent::MATRICEN DrawEvent::getProjectionMode ( void  ) const

getProjectionMode

Return the current Projection Mode if Projection Matrix is set

Returns
void DrawEvent::setModelMatrix ( const glm::mat4 &  matrix)

setModelView

ModelMatrix -> ModelMatrix is a Object Matrix ( example: light matrix )

Parameters
matrix
void DrawEvent::setProjection ( const glm::mat4 &  matrix,
MATRICEN  mode 
)

setProjection

Projection Matrix - -> ortho(2D) or projection(3D)

Parameters
matrix
mode
void DrawEvent::setShadow ( const ShadowEvent event)

setShadow

Set new Shadow Event

Parameters
event
void DrawEvent::setTexture ( const glm::mat4 &  matrix)

setTexture

Texture Matrix - for Texture Rotation | Scaling

Parameters
matrix
void DrawEvent::setWorldView ( const glm::mat4 &  matrix)

setWorldView

WorldView Matrix is the CameraMatrix or ViewMatrix

Parameters
matrix

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