OGRE-Next  3.0.0
Object-Oriented Graphics Rendering Engine
Ogre::v1::EdgeListBuilder Class Reference

General utility class for building edge lists for geometry. More...

#include <OgreEdgeListBuilder.h>

Public Member Functions

 EdgeListBuilder ()
 
virtual ~EdgeListBuilder ()
 
void addIndexData (const IndexData *indexData, size_t vertexSet=0, OperationType opType=OT_TRIANGLE_LIST)
 Add a set of index geometry data to the edge builder. More...
 
void addVertexData (const VertexData *vertexData)
 Add a set of vertex geometry data to the edge builder. More...
 
EdgeDatabuild ()
 Builds the edge information based on the information built up so far. More...
 
void log (Log *l)
 Debugging method. More...
 

Detailed Description

General utility class for building edge lists for geometry.

Remarks
You can add multiple sets of vertex and index data to build and edge list. Edges will be built between the various sets as well as within sets; this allows you to use a model which is built from multiple SubMeshes each using separate index and (optionally) vertex data and still get the same connectivity information. It's important to note that the indexes for the edge will be constrained to a single vertex buffer though (this is required in order to render the edge).

Constructor & Destructor Documentation

◆ EdgeListBuilder()

Ogre::v1::EdgeListBuilder::EdgeListBuilder ( )

◆ ~EdgeListBuilder()

virtual Ogre::v1::EdgeListBuilder::~EdgeListBuilder ( )
virtual

Member Function Documentation

◆ addIndexData()

void Ogre::v1::EdgeListBuilder::addIndexData ( const IndexData indexData,
size_t  vertexSet = 0,
OperationType  opType = OT_TRIANGLE_LIST 
)

Add a set of index geometry data to the edge builder.

Remarks
You must add at least one set of index data to the builder before invoking the build method.
Parameters
indexDataThe index information which describes the triangles.
vertexSetThe vertex data set this index data refers to; you only need to alter this if you have added multiple sets of vertices
opTypeThe operation type used to render these indexes. Only triangle types are supported (no point or line types)

◆ addVertexData()

void Ogre::v1::EdgeListBuilder::addVertexData ( const VertexData vertexData)

Add a set of vertex geometry data to the edge builder.

Remarks
You must add at least one set of vertex data to the builder before invoking the build method.

◆ build()

EdgeData* Ogre::v1::EdgeListBuilder::build ( )

Builds the edge information based on the information built up so far.

Remarks
The caller takes responsibility for deleting the returned structure.

◆ log()

void Ogre::v1::EdgeListBuilder::log ( Log l)

Debugging method.


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