Maratis Engine
Public Member Functions

MRenderingContext Class Reference

#include <MRenderingcontext.h>

List of all members.

Public Member Functions

virtual ~MRenderingContext (void)
virtual void setOrthoView (float left, float right, float bottom, float top, float zNear, float zFar)=0
virtual void setPerspectiveView (float fov, float ratio, float zNear, float zFar)=0
virtual void setViewport (int x, int y, unsigned int width, unsigned int height)=0
virtual void clear (int buffer)=0
virtual void setClearColor (const MVector4 &color)=0
virtual void enableTexture (void)=0
virtual void disableTexture (void)=0
virtual void setTextureGenMode (M_TEX_GEN_MODES mode)=0
virtual void setTextureFilterMode (M_TEX_FILTER_MODES min, M_TEX_FILTER_MODES mag)=0
virtual void setTextureUWrapMode (M_WRAP_MODES wrap)=0
virtual void setTextureVWrapMode (M_WRAP_MODES wrap)=0
virtual void setTextureCombineMode (M_TEX_COMBINE_MODES combine)=0
virtual void bindTexture (unsigned int textureId, const unsigned int multitextureId=0)=0
virtual void createTexture (unsigned int *textureId)=0
virtual void deleteTexture (unsigned int *textureId)=0
virtual void sendTextureImage (MImage *image, bool mipMap, bool filter, bool compress)=0
virtual void texImage (unsigned int level, unsigned int width, unsigned int height, M_TYPES type, M_TEX_MODES mode, const void *pixels)=0
virtual void texSubImage (unsigned int level, int xoffset, int yoffset, unsigned int width, unsigned int height, M_TYPES type, M_TEX_MODES mode, const void *pixels)=0
virtual void generateMipMap (void)=0
virtual void createFrameBuffer (unsigned int *frameBufferId)=0
virtual void deleteFrameBuffer (unsigned int *frameBufferId)=0
virtual void bindFrameBuffer (unsigned int frameBufferId)=0
virtual void attachFrameBufferTexture (M_FRAME_BUFFER_ATTACHMENT attachment, unsigned int textureId)=0
virtual void setDrawingBuffers (M_FRAME_BUFFER_ATTACHMENT *buffers, unsigned int size)=0
virtual void createVertexShader (unsigned int *shaderId)=0
virtual void createPixelShader (unsigned int *shaderId)=0
virtual void deleteShader (unsigned int *shaderId)=0
virtual void sendShaderSource (unsigned int shaderId, const char *source)=0
virtual void bindFX (unsigned int fxId)=0
virtual void createFX (unsigned int *fxId, unsigned int vertexShaderId, unsigned int pixelShaderId)=0
virtual void updateFX (unsigned int fxId)=0
virtual void deleteFX (unsigned int *fxId)=0
virtual void sendUniformInt (unsigned int fxId, const char *name, int *values, const int count=1)=0
virtual void sendUniformFloat (unsigned int fxId, const char *name, float *value, const int count=1)=0
virtual void sendUniformVec2 (unsigned int fxId, const char *name, float *values, const int count=1)=0
virtual void sendUniformVec3 (unsigned int fxId, const char *name, float *values, const int count=1)=0
virtual void sendUniformVec4 (unsigned int fxId, const char *name, float *values, const int count=1)=0
virtual void sendUniformMatrix (unsigned int fxId, const char *name, MMatrix4x4 *matrix, const int count=1, const bool transpose=false)=0
virtual void getAttribLocation (unsigned int fxId, const char *name, int *location)=0
virtual void enableVertexArray (void)=0
virtual void enableColorArray (void)=0
virtual void enableNormalArray (void)=0
virtual void enableTexCoordArray (void)=0
virtual void enableAttribArray (unsigned int location)=0
virtual void disableVertexArray (void)=0
virtual void disableColorArray (void)=0
virtual void disableNormalArray (void)=0
virtual void disableTexCoordArray (void)=0
virtual void disableAttribArray (unsigned int location)=0
virtual void setVertexPointer (M_TYPES type, unsigned int components, const void *pointer)=0
virtual void setColorPointer (M_TYPES type, unsigned int components, const void *pointer)=0
virtual void setNormalPointer (M_TYPES type, const void *pointer)=0
virtual void setTexCoordPointer (M_TYPES type, unsigned int components, const void *pointer)=0
virtual void setAttribPointer (unsigned int location, M_TYPES type, unsigned int components, const void *pointer, const bool normalized=false)=0
virtual void drawArray (M_PRIMITIVE_TYPES type, unsigned int begin, unsigned int size)=0
virtual void drawElement (M_PRIMITIVE_TYPES type, unsigned int size, M_TYPES indicesType, const void *indices)=0
virtual void enableLineAntialiasing (void)=0
virtual void disableLineAntialiasing (void)=0
virtual void setMaterialDiffuse (const MVector4 &diffuse)=0
virtual void setMaterialSpecular (const MVector4 &specular)=0
virtual void setMaterialAmbient (const MVector4 &ambient)=0
virtual void setMaterialEmit (const MVector4 &emit)=0
virtual void setMaterialShininess (float shininess)=0
virtual void enableScissorTest (void)=0
virtual void disableScissorTest (void)=0
virtual void setScissor (int x, int y, unsigned int width, unsigned int height)=0
virtual void setColor (const MColor &color)=0
virtual void setColor3 (const MVector3 &color)=0
virtual void setColor4 (const MVector4 &color)=0
virtual void setColorMask (bool r, bool g, bool b, bool a)=0
virtual void setDepthMask (bool depth)=0
virtual void setAlphaTest (float value)=0
virtual void enableDepthTest (void)=0
virtual void disableDepthTest (void)=0
virtual void setDepthMode (M_DEPTH_MODES mode)=0
virtual void enableStencilTest (void)=0
virtual void disableStencilTest (void)=0
virtual void enableCullFace (void)=0
virtual void disableCullFace (void)=0
virtual void setCullMode (M_CULL_MODES mode)=0
virtual void loadIdentity (void)=0
virtual void setMatrixMode (M_MATRIX_MODES mode)=0
virtual void pushMatrix (void)=0
virtual void popMatrix (void)=0
virtual void multMatrix (const MMatrix4x4 *matrix)=0
virtual void translate (const MVector3 &position)=0
virtual void rotate (const MVector3 &axis, float angle)=0
virtual void scale (const MVector3 &scale)=0
virtual void getViewport (int *viewport)=0
virtual void getModelViewMatrix (MMatrix4x4 *matrix)=0
virtual void getProjectionMatrix (MMatrix4x4 *matrix)=0
virtual void getTextureMatrix (MMatrix4x4 *matrix)=0
virtual void enableFog (void)=0
virtual void disableFog (void)=0
virtual void setFogColor (const MVector3 &color)=0
virtual void setFogDistance (float min, float max)=0
virtual void getFogColor (MVector3 *color)=0
virtual void getFogDistance (float *min, float *max)=0
virtual void enableLighting (void)=0
virtual void disableLighting (void)=0
virtual void enableLight (unsigned int id)=0
virtual void disableLight (unsigned int id)=0
virtual void setLightPosition (unsigned int id, const MVector4 &position)=0
virtual void setLightDiffuse (unsigned int id, const MVector4 &diffuse)=0
virtual void setLightSpecular (unsigned int id, const MVector4 &specular)=0
virtual void setLightAmbient (unsigned int id, const MVector4 &ambient)=0
virtual void setLightAttenuation (unsigned int id, float constant, float linear, float quadratic)=0
virtual void setLightSpotDirection (unsigned int id, const MVector3 &direction)=0
virtual void setLightSpotAngle (unsigned int id, float angle)=0
virtual void setLightSpotExponent (unsigned int id, float exponent)=0
virtual void getLightPosition (unsigned int id, MVector4 *position)=0
virtual void getLightDiffuse (unsigned int id, MVector4 *diffuse)=0
virtual void getLightSpecular (unsigned int id, MVector4 *specular)=0
virtual void getLightAmbient (unsigned int id, MVector4 *ambient)=0
virtual void getLightAttenuation (unsigned int id, float *constant, float *linear, float *quadratic)=0
virtual void getLightSpotDirection (unsigned int id, MVector3 *direction)=0
virtual void getLightSpotAngle (unsigned int id, float *angle)=0
virtual void getLightSpotExponent (unsigned int id, float *exponent)=0
virtual void enableBlending (void)=0
virtual void disableBlending (void)=0
virtual void setBlendingMode (M_BLENDING_MODES mode)=0

Constructor & Destructor Documentation

virtual MRenderingContext::~MRenderingContext ( void  ) [inline, virtual]

Member Function Documentation

virtual void MRenderingContext::attachFrameBufferTexture ( M_FRAME_BUFFER_ATTACHMENT  attachment,
unsigned int  textureId 
) [pure virtual]
virtual void MRenderingContext::bindFrameBuffer ( unsigned int  frameBufferId) [pure virtual]
virtual void MRenderingContext::bindFX ( unsigned int  fxId) [pure virtual]
virtual void MRenderingContext::bindTexture ( unsigned int  textureId,
const unsigned int  multitextureId = 0 
) [pure virtual]
virtual void MRenderingContext::clear ( int  buffer) [pure virtual]
virtual void MRenderingContext::createFrameBuffer ( unsigned int *  frameBufferId) [pure virtual]
virtual void MRenderingContext::createFX ( unsigned int *  fxId,
unsigned int  vertexShaderId,
unsigned int  pixelShaderId 
) [pure virtual]
virtual void MRenderingContext::createPixelShader ( unsigned int *  shaderId) [pure virtual]
virtual void MRenderingContext::createTexture ( unsigned int *  textureId) [pure virtual]
virtual void MRenderingContext::createVertexShader ( unsigned int *  shaderId) [pure virtual]
virtual void MRenderingContext::deleteFrameBuffer ( unsigned int *  frameBufferId) [pure virtual]
virtual void MRenderingContext::deleteFX ( unsigned int *  fxId) [pure virtual]
virtual void MRenderingContext::deleteShader ( unsigned int *  shaderId) [pure virtual]
virtual void MRenderingContext::deleteTexture ( unsigned int *  textureId) [pure virtual]
virtual void MRenderingContext::disableAttribArray ( unsigned int  location) [pure virtual]
virtual void MRenderingContext::disableBlending ( void  ) [pure virtual]
virtual void MRenderingContext::disableColorArray ( void  ) [pure virtual]
virtual void MRenderingContext::disableCullFace ( void  ) [pure virtual]
virtual void MRenderingContext::disableDepthTest ( void  ) [pure virtual]
virtual void MRenderingContext::disableFog ( void  ) [pure virtual]
virtual void MRenderingContext::disableLight ( unsigned int  id) [pure virtual]
virtual void MRenderingContext::disableLighting ( void  ) [pure virtual]
virtual void MRenderingContext::disableLineAntialiasing ( void  ) [pure virtual]
virtual void MRenderingContext::disableNormalArray ( void  ) [pure virtual]
virtual void MRenderingContext::disableScissorTest ( void  ) [pure virtual]
virtual void MRenderingContext::disableStencilTest ( void  ) [pure virtual]
virtual void MRenderingContext::disableTexCoordArray ( void  ) [pure virtual]
virtual void MRenderingContext::disableTexture ( void  ) [pure virtual]
virtual void MRenderingContext::disableVertexArray ( void  ) [pure virtual]
virtual void MRenderingContext::drawArray ( M_PRIMITIVE_TYPES  type,
unsigned int  begin,
unsigned int  size 
) [pure virtual]
virtual void MRenderingContext::drawElement ( M_PRIMITIVE_TYPES  type,
unsigned int  size,
M_TYPES  indicesType,
const void *  indices 
) [pure virtual]
virtual void MRenderingContext::enableAttribArray ( unsigned int  location) [pure virtual]
virtual void MRenderingContext::enableBlending ( void  ) [pure virtual]
virtual void MRenderingContext::enableColorArray ( void  ) [pure virtual]
virtual void MRenderingContext::enableCullFace ( void  ) [pure virtual]
virtual void MRenderingContext::enableDepthTest ( void  ) [pure virtual]
virtual void MRenderingContext::enableFog ( void  ) [pure virtual]
virtual void MRenderingContext::enableLight ( unsigned int  id) [pure virtual]
virtual void MRenderingContext::enableLighting ( void  ) [pure virtual]
virtual void MRenderingContext::enableLineAntialiasing ( void  ) [pure virtual]
virtual void MRenderingContext::enableNormalArray ( void  ) [pure virtual]
virtual void MRenderingContext::enableScissorTest ( void  ) [pure virtual]
virtual void MRenderingContext::enableStencilTest ( void  ) [pure virtual]
virtual void MRenderingContext::enableTexCoordArray ( void  ) [pure virtual]
virtual void MRenderingContext::enableTexture ( void  ) [pure virtual]
virtual void MRenderingContext::enableVertexArray ( void  ) [pure virtual]
virtual void MRenderingContext::generateMipMap ( void  ) [pure virtual]
virtual void MRenderingContext::getAttribLocation ( unsigned int  fxId,
const char *  name,
int *  location 
) [pure virtual]
virtual void MRenderingContext::getFogColor ( MVector3 color) [pure virtual]
virtual void MRenderingContext::getFogDistance ( float *  min,
float *  max 
) [pure virtual]
virtual void MRenderingContext::getLightAmbient ( unsigned int  id,
MVector4 ambient 
) [pure virtual]
virtual void MRenderingContext::getLightAttenuation ( unsigned int  id,
float *  constant,
float *  linear,
float *  quadratic 
) [pure virtual]
virtual void MRenderingContext::getLightDiffuse ( unsigned int  id,
MVector4 diffuse 
) [pure virtual]
virtual void MRenderingContext::getLightPosition ( unsigned int  id,
MVector4 position 
) [pure virtual]
virtual void MRenderingContext::getLightSpecular ( unsigned int  id,
MVector4 specular 
) [pure virtual]
virtual void MRenderingContext::getLightSpotAngle ( unsigned int  id,
float *  angle 
) [pure virtual]
virtual void MRenderingContext::getLightSpotDirection ( unsigned int  id,
MVector3 direction 
) [pure virtual]
virtual void MRenderingContext::getLightSpotExponent ( unsigned int  id,
float *  exponent 
) [pure virtual]
virtual void MRenderingContext::getModelViewMatrix ( MMatrix4x4 matrix) [pure virtual]
virtual void MRenderingContext::getProjectionMatrix ( MMatrix4x4 matrix) [pure virtual]
virtual void MRenderingContext::getTextureMatrix ( MMatrix4x4 matrix) [pure virtual]
virtual void MRenderingContext::getViewport ( int *  viewport) [pure virtual]
virtual void MRenderingContext::loadIdentity ( void  ) [pure virtual]
virtual void MRenderingContext::multMatrix ( const MMatrix4x4 matrix) [pure virtual]
virtual void MRenderingContext::popMatrix ( void  ) [pure virtual]
virtual void MRenderingContext::pushMatrix ( void  ) [pure virtual]
virtual void MRenderingContext::rotate ( const MVector3 axis,
float  angle 
) [pure virtual]
virtual void MRenderingContext::scale ( const MVector3 scale) [pure virtual]
virtual void MRenderingContext::sendShaderSource ( unsigned int  shaderId,
const char *  source 
) [pure virtual]
virtual void MRenderingContext::sendTextureImage ( MImage image,
bool  mipMap,
bool  filter,
bool  compress 
) [pure virtual]
virtual void MRenderingContext::sendUniformFloat ( unsigned int  fxId,
const char *  name,
float *  value,
const int  count = 1 
) [pure virtual]
virtual void MRenderingContext::sendUniformInt ( unsigned int  fxId,
const char *  name,
int *  values,
const int  count = 1 
) [pure virtual]
virtual void MRenderingContext::sendUniformMatrix ( unsigned int  fxId,
const char *  name,
MMatrix4x4 matrix,
const int  count = 1,
const bool  transpose = false 
) [pure virtual]
virtual void MRenderingContext::sendUniformVec2 ( unsigned int  fxId,
const char *  name,
float *  values,
const int  count = 1 
) [pure virtual]
virtual void MRenderingContext::sendUniformVec3 ( unsigned int  fxId,
const char *  name,
float *  values,
const int  count = 1 
) [pure virtual]
virtual void MRenderingContext::sendUniformVec4 ( unsigned int  fxId,
const char *  name,
float *  values,
const int  count = 1 
) [pure virtual]
virtual void MRenderingContext::setAlphaTest ( float  value) [pure virtual]
virtual void MRenderingContext::setAttribPointer ( unsigned int  location,
M_TYPES  type,
unsigned int  components,
const void *  pointer,
const bool  normalized = false 
) [pure virtual]
virtual void MRenderingContext::setBlendingMode ( M_BLENDING_MODES  mode) [pure virtual]
virtual void MRenderingContext::setClearColor ( const MVector4 color) [pure virtual]
virtual void MRenderingContext::setColor ( const MColor color) [pure virtual]
virtual void MRenderingContext::setColor3 ( const MVector3 color) [pure virtual]
virtual void MRenderingContext::setColor4 ( const MVector4 color) [pure virtual]
virtual void MRenderingContext::setColorMask ( bool  r,
bool  g,
bool  b,
bool  a 
) [pure virtual]
virtual void MRenderingContext::setColorPointer ( M_TYPES  type,
unsigned int  components,
const void *  pointer 
) [pure virtual]
virtual void MRenderingContext::setCullMode ( M_CULL_MODES  mode) [pure virtual]
virtual void MRenderingContext::setDepthMask ( bool  depth) [pure virtual]
virtual void MRenderingContext::setDepthMode ( M_DEPTH_MODES  mode) [pure virtual]
virtual void MRenderingContext::setDrawingBuffers ( M_FRAME_BUFFER_ATTACHMENT buffers,
unsigned int  size 
) [pure virtual]
virtual void MRenderingContext::setFogColor ( const MVector3 color) [pure virtual]
virtual void MRenderingContext::setFogDistance ( float  min,
float  max 
) [pure virtual]
virtual void MRenderingContext::setLightAmbient ( unsigned int  id,
const MVector4 ambient 
) [pure virtual]
virtual void MRenderingContext::setLightAttenuation ( unsigned int  id,
float  constant,
float  linear,
float  quadratic 
) [pure virtual]
virtual void MRenderingContext::setLightDiffuse ( unsigned int  id,
const MVector4 diffuse 
) [pure virtual]
virtual void MRenderingContext::setLightPosition ( unsigned int  id,
const MVector4 position 
) [pure virtual]
virtual void MRenderingContext::setLightSpecular ( unsigned int  id,
const MVector4 specular 
) [pure virtual]
virtual void MRenderingContext::setLightSpotAngle ( unsigned int  id,
float  angle 
) [pure virtual]
virtual void MRenderingContext::setLightSpotDirection ( unsigned int  id,
const MVector3 direction 
) [pure virtual]
virtual void MRenderingContext::setLightSpotExponent ( unsigned int  id,
float  exponent 
) [pure virtual]
virtual void MRenderingContext::setMaterialAmbient ( const MVector4 ambient) [pure virtual]
virtual void MRenderingContext::setMaterialDiffuse ( const MVector4 diffuse) [pure virtual]
virtual void MRenderingContext::setMaterialEmit ( const MVector4 emit) [pure virtual]
virtual void MRenderingContext::setMaterialShininess ( float  shininess) [pure virtual]
virtual void MRenderingContext::setMaterialSpecular ( const MVector4 specular) [pure virtual]
virtual void MRenderingContext::setMatrixMode ( M_MATRIX_MODES  mode) [pure virtual]
virtual void MRenderingContext::setNormalPointer ( M_TYPES  type,
const void *  pointer 
) [pure virtual]
virtual void MRenderingContext::setOrthoView ( float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar 
) [pure virtual]
virtual void MRenderingContext::setPerspectiveView ( float  fov,
float  ratio,
float  zNear,
float  zFar 
) [pure virtual]
virtual void MRenderingContext::setScissor ( int  x,
int  y,
unsigned int  width,
unsigned int  height 
) [pure virtual]
virtual void MRenderingContext::setTexCoordPointer ( M_TYPES  type,
unsigned int  components,
const void *  pointer 
) [pure virtual]
virtual void MRenderingContext::setTextureCombineMode ( M_TEX_COMBINE_MODES  combine) [pure virtual]
virtual void MRenderingContext::setTextureFilterMode ( M_TEX_FILTER_MODES  min,
M_TEX_FILTER_MODES  mag 
) [pure virtual]
virtual void MRenderingContext::setTextureGenMode ( M_TEX_GEN_MODES  mode) [pure virtual]
virtual void MRenderingContext::setTextureUWrapMode ( M_WRAP_MODES  wrap) [pure virtual]
virtual void MRenderingContext::setTextureVWrapMode ( M_WRAP_MODES  wrap) [pure virtual]
virtual void MRenderingContext::setVertexPointer ( M_TYPES  type,
unsigned int  components,
const void *  pointer 
) [pure virtual]
virtual void MRenderingContext::setViewport ( int  x,
int  y,
unsigned int  width,
unsigned int  height 
) [pure virtual]
virtual void MRenderingContext::texImage ( unsigned int  level,
unsigned int  width,
unsigned int  height,
M_TYPES  type,
M_TEX_MODES  mode,
const void *  pixels 
) [pure virtual]
virtual void MRenderingContext::texSubImage ( unsigned int  level,
int  xoffset,
int  yoffset,
unsigned int  width,
unsigned int  height,
M_TYPES  type,
M_TEX_MODES  mode,
const void *  pixels 
) [pure virtual]
virtual void MRenderingContext::translate ( const MVector3 position) [pure virtual]
virtual void MRenderingContext::updateFX ( unsigned int  fxId) [pure virtual]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines