Mount Fuji Engine  0.8b
Enumerations | Functions
Immediate Mode Renderer

Enumerations

enum  PrimType {
  PT_PointList, PT_LineList, PT_LineStrip, PT_TriList,
  PT_TriStrip, PT_TriFan, PT_QuadList, PT_PrimMask = 0x07,
  PT_Prelit = 64, PT_Untextured = 128
}
 Primitive Type for an immediate render block. More...
 

Functions

MF_API void MFPrimitive (uint32 primType, uint32 hint=0)
 Begin a primitive block. More...
 
MF_API void MFBegin (uint32 vertexCount)
 Begin a vertex submition block. More...
 
MF_API void MFSetMatrix (const MFMatrix &mat)
 Set the world matrix for the primitive block. More...
 
MF_API void MFSetColour (float r, float g, float b, float a=1.0f)
 Set the current vertex colour. More...
 
void MFSetColourV (const MFVector &colour)
 Set the current vertex colour. More...
 
MF_API void MFSetTexCoord1 (float u, float v)
 Set the current texture coordinate. More...
 
MF_API void MFSetNormal (float x, float y, float z)
 Set the current vertex normal. More...
 
void MFSetNormalV (const MFVector &normal)
 Set the current vertex normal. More...
 
MF_API void MFSetPosition (float x, float y, float z)
 Set the current vertex position. More...
 
void MFSetPositionV (const MFVector &pos)
 Set the current vertex position. More...
 
MF_API void MFEnd ()
 End the vertex submition block. More...
 
MF_API void MFPrimitive_BeginBlitter (int numBlits)
 Begin a blitter block. More...
 
MF_API void MFPrimitive_Blit (int x, int y, int tx, int ty, int tw, int th)
 Blit an image or part of an image to the render target. More...
 
MF_API void MFPrimitive_BlitRect (int x, int y, const MFRect &uvs)
 Blit an image or part of an image to the render target with scaling. More...
 
MF_API void MFPrimitive_StretchBlit (int x, int y, int w, int h, int tx, int ty, int tw, int th)
 Blit an image or part of an image to the render target with scaling. More...
 
MF_API void MFPrimitive_StretchBlitRect (int x, int y, int w, int h, const MFRect &uvs)
 Blit an image or part of an image to the render target with scaling. More...
 
MF_API void MFPrimitive_EndBlitter ()
 End a blitter block. More...
 
MF_API void MFPrimitive_DrawQuad (float x, float y, float w, float h, const MFVector &colour=MFVector::one, float su=0.0f, float sv=0.0f, float du=1.0f, float dv=1.0f, const MFMatrix &mat=MFMatrix::identity)
 Draw a textured square. More...
 
MF_API void MFPrimitive_DrawQuadV (const MFVector &min, const MFVector &max, const MFVector &colour=MFVector::one, float su=0.0f, float sv=0.0f, float du=1.0f, float dv=1.0f, const MFMatrix &mat=MFMatrix::identity)
 Draw a textured square. More...
 
MF_API void MFPrimitive_DrawUntexturedQuad (float x, float y, float w, float h, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity)
 Draw an untextured square. More...
 
MF_API void MFPrimitive_DrawUntexturedQuadV (const MFVector &min, const MFVector &max, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity)
 Draw an untextured square. More...
 
MF_API void MFPrimitive_DrawBox (const MFVector &boxMin, const MFVector &boxMax, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=true)
 Draw a box. More...
 
MF_API void MFPrimitive_DrawSphere (const MFVector &position, float radius, int segments=8, int slices=5, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=true)
 Draw a sphere. More...
 
MF_API void MFPrimitive_DrawCapsule (const MFVector &startPoint, const MFVector &endPoint, float radius, int segments=8, int slices=5, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=true)
 Draw a capsule. More...
 
MF_API void MFPrimitive_DrawCylinder (const MFVector &startPoint, const MFVector &endPoint, float radius, int segments=8, int slices=5, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=true)
 Draw a cylinder. More...
 
MF_API void MFPrimitive_DrawPlane (const MFVector &point, const MFVector &normal, float span, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=true)
 Draw a disc representing a plane. More...
 
MF_API void MFPrimitive_DrawCone (const MFVector &base, const MFVector &point, float radius, int segments=8, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=true)
 Draw a cone. More...
 
MF_API void MFPrimitive_DrawArrow (const MFVector &pos, const MFVector &dir, float length, float radius, const MFVector &colour=MFVector::one, const MFMatrix &mat=MFMatrix::identity, bool wireframe=false)
 Draw an arrow. More...
 
MF_API void MFPrimitive_DrawTransform (const MFMatrix &mat, float scale, bool lite=false)
 Draw a transform. More...
 

Detailed Description