Image Component Library (ICL)
|
polygon primitive More...
#include <Primitive.h>
Public Member Functions | |
PolygonPrimitive (int n, const int *vidx, const GeomColor &color, const int *nidx=0) | |
constructor | |
virtual ICLGeom_API void | render (const Primitive::RenderContext &ctx) |
render method | |
virtual Primitive * | copy () const |
deep copy method | |
int | getNumPoints () const |
direct access to number of vertices | |
int | getVertexIndex (int i) const |
direct access to i-th vertex index | |
int | getNormalIndex (int i) const |
direct access to i-th normal index | |
bool | hasNormals () const |
utility method to ask whether normal indices are available | |
Public Attributes | |
utils::Array2D< int > | idx |
vertex and texture primitives |
polygon primitive
The Array2D's first row contains the
icl::geom::PolygonPrimitive::PolygonPrimitive | ( | int | n, |
const int * | vidx, | ||
const GeomColor & | color, | ||
const int * | nidx = 0 |
||
) | [inline] |
constructor
virtual Primitive* icl::geom::PolygonPrimitive::copy | ( | ) | const [inline, virtual] |
deep copy method
Implements icl::geom::Primitive.
int icl::geom::PolygonPrimitive::getNormalIndex | ( | int | i | ) | const [inline] |
direct access to i-th normal index
This will crash, if there are no normals
int icl::geom::PolygonPrimitive::getNumPoints | ( | ) | const [inline] |
direct access to number of vertices
int icl::geom::PolygonPrimitive::getVertexIndex | ( | int | i | ) | const [inline] |
direct access to i-th vertex index
bool icl::geom::PolygonPrimitive::hasNormals | ( | ) | const [inline] |
utility method to ask whether normal indices are available
virtual ICLGeom_API void icl::geom::PolygonPrimitive::render | ( | const Primitive::RenderContext & | ctx | ) | [virtual] |
render method
Implements icl::geom::Primitive.
vertex and texture primitives
Layout: