Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
|
Additional information about the triangle arrays returned by ITriangleSelector::getTriangles. More...
#include <nirtcpp/core/engine/ITriangleSelector.hpp>
Public Member Functions | |
bool | isIndexInRange (nirt::u32 triangleIndex) const |
Check if this triangle index inside the range. | |
Public Attributes | |
nirt::u32 | RangeStart |
First index in the returned triangle array for which this class is valid. | |
nirt::u32 | RangeSize |
Number of elements in the returned triangle array for which this class is valid (starting with RangeStart) | |
const ITriangleSelector * | Selector |
Real selector which contained those triangles (useful when working with MetaTriangleSelector) | |
ISceneNode * | SceneNode |
SceneNode from which the triangles are from. | |
const IMeshBuffer * | MeshBuffer |
nirt::u32 | MaterialIndex |
Index of selected material in the SceneNode. Usually only valid when MeshBuffer is also set, otherwise always 0. | |
Additional information about the triangle arrays returned by ITriangleSelector::getTriangles.
ITriangleSelector are free to fill out this information fully, partly or ignore it. Usually they will try to fill it when they can and set values to 0 otherwise.
|
inline |
Check if this triangle index inside the range.
triangleIndex | Index to an element inside the array of triangles returned by ITriangleSelector::getTriangles |
const IMeshBuffer* nirt::scene::SCollisionTriangleRange::MeshBuffer |
Meshbuffer from which the triangles are from Is 0 when the ITriangleSelector doesn't support meshbuffer selection