#include <OgreEdgeListBuilder.h>
Public Types | |
typedef std::vector < Vector4, AlignedAllocator < Vector4 > > | TriangleFaceNormalList |
typedef std::vector < char > | TriangleLightFacingList |
typedef std::vector < Triangle > | TriangleList |
typedef std::vector < Edge > | EdgeList |
typedef std::vector < EdgeGroup > | EdgeGroupList |
Public Member Functions | |
void | updateTriangleLightFacing (const Vector4 &lightPos) |
Calculate the light facing state of the triangles in this edge list. | |
void | updateFaceNormals (size_t vertexSet, const HardwareVertexBufferSharedPtr &positionBuffer) |
Updates the face normals for this edge list based on (changed) position information, useful for animated objects. | |
void | log (Log *log) |
Public Attributes | |
TriangleList | triangles |
Main triangles array, stores all triangles of this edge list. | |
TriangleFaceNormalList | triangleFaceNormals |
All triangle face normals. | |
TriangleLightFacingList | triangleLightFacings |
Triangle light facing states. | |
EdgeGroupList | edgeGroups |
All edge groups of this edge list. | |
bool | isClosed |
Flag indicate the mesh is manifold. | |
Classes | |
struct | Edge |
Edge data. More... | |
struct | EdgeGroup |
A group of edges sharing the same vertex data. More... | |
struct | Triangle |
Basic triangle structure. More... |
Definition at line 47 of file OgreEdgeListBuilder.h.
typedef std::vector<Vector4, AlignedAllocator<Vector4> > Ogre::EdgeData::TriangleFaceNormalList |
Definition at line 79 of file OgreEdgeListBuilder.h.
typedef std::vector<char> Ogre::EdgeData::TriangleLightFacingList |
Definition at line 84 of file OgreEdgeListBuilder.h.
typedef std::vector<Triangle> Ogre::EdgeData::TriangleList |
Definition at line 86 of file OgreEdgeListBuilder.h.
typedef std::vector<Edge> Ogre::EdgeData::EdgeList |
Definition at line 87 of file OgreEdgeListBuilder.h.
typedef std::vector<EdgeGroup> Ogre::EdgeData::EdgeGroupList |
Definition at line 108 of file OgreEdgeListBuilder.h.
void Ogre::EdgeData::updateTriangleLightFacing | ( | const Vector4 & | lightPos | ) |
Calculate the light facing state of the triangles in this edge list.
lightPos | 4D position of the light in object space, note that for directional lights (which have no position), the w component is 0 and the x/y/z position are the direction. |
void Ogre::EdgeData::updateFaceNormals | ( | size_t | vertexSet, | |
const HardwareVertexBufferSharedPtr & | positionBuffer | |||
) |
Updates the face normals for this edge list based on (changed) position information, useful for animated objects.
vertexSet | The vertex set we are updating | |
positionBuffer | The updated position buffer, must contain ONLY xyz |
void Ogre::EdgeData::log | ( | Log * | log | ) |
Main triangles array, stores all triangles of this edge list.
Note that triangles are grouping against edge group.
Definition at line 113 of file OgreEdgeListBuilder.h.
All triangle face normals.
It should be 1:1 with triangles.
Definition at line 115 of file OgreEdgeListBuilder.h.
Triangle light facing states.
It should be 1:1 with triangles.
Definition at line 117 of file OgreEdgeListBuilder.h.
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat May 10 16:25:40 2008