|  | 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  More... | |
| virtual ICLGeom_API void | render (const Primitive::RenderContext &ctx) | 
| render method  More... | |
| virtual Primitive * | copy () const | 
| deep copy method  More... | |
| int | getNumPoints () const | 
| direct access to number of vertices  More... | |
| int | getVertexIndex (int i) const | 
| direct access to i-th vertex index  More... | |
| int | getNormalIndex (int i) const | 
| direct access to i-th normal index  More... | |
| bool | hasNormals () const | 
| utility method to ask whether normal indices are available  More... | |
|  Public Member Functions inherited from icl::geom::Primitive | |
| Primitive (Type type=nothing, const GeomColor &color=GeomColor(255, 255, 255, 255)) | |
| Default constructor.  More... | |
| virtual | ~Primitive () | 
| virtual, but empty destructor  More... | |
| Public Attributes | |
| utils::Array2D< int > | idx | 
| vertex and texture primitives  More... | |
|  Public Attributes inherited from icl::geom::Primitive | |
| Type | type | 
| the primitive type  More... | |
| GeomColor | color | 
| the color of this primitive  More... | |
| Additional Inherited Members | |
|  Public Types inherited from icl::geom::Primitive | |
| enum | Type { vertex = 1<<0, line = 1<<1, triangle = 1<<2, quad = 1<<3, polygon = 1<<4, texture = 1<<5, text = 1<<6, nothing = 1<<7, custom = 1<<20, PRIMITIVE_TYPE_COUNT = 8, all = (1<<PRIMITIVE_TYPE_COUNT)-1, faces = triangle | quad | polygon | texture | text } | 
| primitive type for dynamic handling of different primitives  More... | |
polygon primitive
The Array2D's first row contains the
| 
 | inline | 
constructor
| 
 | inlinevirtual | 
deep copy method
Implements icl::geom::Primitive.
| 
 | inline | 
direct access to i-th normal index
This will crash, if there are no normals
| 
 | inline | 
direct access to number of vertices
| 
 | inline | 
direct access to i-th vertex index
| 
 | inline | 
utility method to ask whether normal indices are available
| 
 | virtual | 
render method
Implements icl::geom::Primitive.
| utils::Array2D<int> icl::geom::PolygonPrimitive::idx | 
vertex and texture primitives
Layout:
 1.8.15
 1.8.15