GLFX::IMesh Struct Reference

#include <glfx.h>

Inheritance diagram for GLFX::IMesh:

GLFX::IObject List of all members.

Detailed Description

It has a vertex buffer and may have also a index buffer. A mesh is set of primitve groups, each may be draw with different state.


Public Member Functions

virtual IVertexBufferGetVertexBuffer ()=0
virtual IIndexBufferGetIndexBuffer ()=0
virtual unsigned long GetPrimitiveGroupCount ()=0
virtual unsigned long GetPrimitiveGroupStartIndex (unsigned long group)=0
virtual unsigned long GetPrimitiveGroupElementCount (unsigned long group)=0
virtual GLenum GetPrimitiveType ()=0
virtual void SetPrimitiveGroup (unsigned long group, unsigned long start, unsigned long count)=0
virtual void DrawPrimitiveGroup (unsigned long group)=0


Member Function Documentation

virtual IVertexBuffer* GLFX::IMesh::GetVertexBuffer (  )  [pure virtual]

Returns mesh vertex buffer.

Returns:
mesh vertex buffer

virtual IIndexBuffer* GLFX::IMesh::GetIndexBuffer (  )  [pure virtual]

Returns mesh index buffer.

Returns:
mesh index buffer or 0 if doesn't exist

virtual unsigned long GLFX::IMesh::GetPrimitiveGroupCount (  )  [pure virtual]

Return number of primitive groups.

return number of primitive groups

virtual unsigned long GLFX::IMesh::GetPrimitiveGroupStartIndex ( unsigned long  group  )  [pure virtual]

Get the first index of vertex belonging to a primitve group.

Parameters:
group primitive group number
Returns:
group starting index

virtual unsigned long GLFX::IMesh::GetPrimitiveGroupElementCount ( unsigned long  group  )  [pure virtual]

Get number of elements in this group.

Parameters:
group primitive group number
Returns:
group index count

virtual GLenum GLFX::IMesh::GetPrimitiveType (  )  [pure virtual]

Returns mesh element type.

Returns:
GL_POINTS, GL_LINES or GL_TRIANGLES.

virtual void GLFX::IMesh::SetPrimitiveGroup ( unsigned long  group,
unsigned long  start,
unsigned long  count 
) [pure virtual]

Sets a primitive group.

Parameters:
group primitive group number
start first index of this group
count index count of this group

virtual void GLFX::IMesh::DrawPrimitiveGroup ( unsigned long  group  )  [pure virtual]

Draws a given primitve group.

Parameters:
group primitive group number


The documentation for this struct was generated from the following file:
SourceForge.net Logo