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

void MFPrimitive (uint32 primType, uint32 hint=0)
 Begin a primitive block.
void MFBegin (uint32 vertexCount)
 Begin a vertex submition block.
void MFSetMatrix (const MFMatrix &mat)
 Set the world matrix for the primitive block.
void MFSetColour (const MFVector &colour)
 Set the current vertex colour.
void MFSetColour (float r, float g, float b, float a=1.0f)
 Set the current vertex colour.
void MFSetColour (uint32 col)
 Set the current vertex colour.
void MFSetTexCoord1 (float u, float v)
 Set the current texture coordinate.
void MFSetNormal (const MFVector &normal)
 Set the current vertex normal.
void MFSetNormal (float x, float y, float z)
 Set the current vertex normal.
void MFSetPosition (const MFVector &pos)
 Set the current vertex position.
void MFSetPosition (float x, float y, float z)
 Set the current vertex position.
void MFEnd ()
 End the vertex submition block.
void MFPrimitive_BeginBlitter (int numBlits)
 Begin a blitter block.
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.
void MFPrimitive_EndBlitter ()
 End a blitter block.
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)
 Draw a textured square.
void MFPrimitive_DrawQuad (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)
 Draw a textured square.
void MFPrimitive_DrawUntexturedQuad (float x, float y, float w, float h, const MFVector &colour=MFVector::one)
 Draw an untextured square.
void MFPrimitive_DrawUntexturedQuad (const MFVector &min, const MFVector &max, const MFVector &colour=MFVector::one)
 Draw an untextured square.
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.
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.
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.
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.
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.
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.
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.
void MFPrimitive_DrawTransform (const MFMatrix &mat, float scale, bool lite=false)
 Draw a transform.

Generated on Sat Oct 28 16:27:35 2006 for MountFuji Engine by  doxygen 1.4.5