Public Member Functions | |
PrimitiveContext () | |
void | set_geoinfo (GeoInfo *g, GeoInfo *mg=nullptr) |
GeoInfo * | geoinfo () const |
GeoInfo * | mb_geoinfo () const |
Primitive * | primitive () const |
const Box3 & | face_uv_bbox () |
unsigned | face_clipmask () |
void | set_transforms (MatrixArray *m, MatrixArray *mb=nullptr) |
MatrixArray * | transforms () const |
const Matrix4 & | matrix (int n) const |
const Matrix4 & | inverse_matrix (int n) const |
MatrixArray * | mb_transforms () const |
const Matrix4 & | mb_matrix (int n) const |
const Matrix4 & | mb_inverse_matrix (int n) const |
const unsigned * | indices () const |
unsigned | index (int n) const |
void | setPrimitive (Primitive *primitive) |
void | setPrimitiveIndex (unsigned int index) |
virtual void | addToScene (rPrimitive *primitiveToAdd, Scene *scene) |
virtual DD::Image::rTriangle * | newRenderTriangle (const GeoInfo *info, const Primitive *p) |
virtual DD::Image::rTriangle * | newRenderTriangle (const rTriangle &t) |
virtual void | deleteRenderPrimitive (DD::Image::rPrimitive *p) |
Public Attributes | |
std::vector< unsigned int > | face_vertices_ |
vertex indices of a polygon face | |
std::vector< unsigned int > | triangulation_ |
face vertex order that defines triangulation of a polygon face | |
Friends | |
class | Scene |
class | GeoInfo |
class | Primitive |
class | ParticlesSprite |
class | PolygonPrimitive |
class | Mesh |
A context structure to reference environmental information for the primitive during rendering. Contains pointers to the primitive's parent GeoInfo, the valid MatrixArray for this object, and attribute link pointers to the standard attribute types.
PrimitiveContext::PrimitiveContext | ( | ) |
Basic constructor just zeros all pointers.
©2020 The Foundry Visionmongers, Ltd. All Rights Reserved. |