OptimizedPolyList
Engine/source/collision/optimizedPolyList.h
A concrete, renderable PolyList.
Classes:
Public Types
enum
PolyType { TriangleFan TriangleStrip TriangleList }
Public Attributes
Public Functions
begin(BaseMatInstance * material, U32 surfaceKey)
Start a surface.
begin(BaseMatInstance * material, U32 surfaceKey, PolyType type)
insertMaterial(BaseMatInstance * baseMat)
insertNormal(const Point3F & normal)
insertPlane(const PlaneF & plane)
insertPoint(const Point3F & point)
bool
isEmpty()
Are we empty of data?
Protected Functions
Detailed Description
A concrete, renderable PolyList.
This class is used to store geometry from a PolyList query.
see:
Public Types
PolyType
Enumerator
- TriangleFan
- TriangleStrip
- TriangleList
Public Attributes
Vector< U32 > mIndexList
Vector< BaseMatInstance * > mMaterialList
Vector< Point3F > mNormals
Vector< PlaneF > mPlaneList
Vector< Point3F > mPoints
Vector< Poly > mPolyList
Vector< Point2F > mUV0s
Vector< Point2F > mUV1s
Vector< VertIndex > mVertexList
Public Functions
OptimizedPolyList()
~OptimizedPolyList()
addPlane(const PlaneF & plane)
Reimplemented from: AbstractPolyList
addPoint(const Point3F & p)
Reimplemented from: AbstractPolyList
begin(BaseMatInstance * material, U32 surfaceKey)
Reimplemented from: AbstractPolyList
begin(BaseMatInstance * material, U32 surfaceKey, PolyType type)
clear()
end()
Reimplemented from: AbstractPolyList
insertMaterial(BaseMatInstance * baseMat)
insertNormal(const Point3F & normal)
insertPlane(const PlaneF & plane)
insertPoint(const Point3F & point)
insertUV0(const Point2F & uv)
insertUV1(const Point2F & uv)
insertVertex(const Point3F & point, const Point3F & normal, const Point2F & uv0, const Point2F & uv1)
isEmpty()
Reimplemented from: AbstractPolyList
plane(const PlaneF & p)
Reimplemented from: AbstractPolyList
plane(const U32 index)
Reimplemented from: AbstractPolyList
plane(U32 v1, U32 v2, U32 v3)
Reimplemented from: AbstractPolyList
toPolyhedron()
vertex(const Point3F & p)
vertex(const Point3F & p, const Point3F & normal, const Point2F & uv0, const Point2F & uv1)
vertex(U32 vi)
Reimplemented from: AbstractPolyList