Image Component Library (ICL)
|
Grid primitive that renders a two-sided grid (sides have different colors) More...
#include <Primitive.h>
Public Member Functions | |
int | getIdx (int x, int y) const |
TwoSidedGridPrimitive (int w, int h, const Vec *vertices, const Vec *normals=0, const GeomColor &frontColor=GeomColor(0, 100, 255, 255), const GeomColor &backColor=GeomColor(255, 0, 100, 255), const GeomColor &lineColor=GeomColor(0, 255, 100, 255), bool drawLines=false, bool drawQuads=true) | |
virtual ICLGeom_API void | render (const Primitive::RenderContext &ctx) |
virtual render method, which is called by the parent scene object More... | |
virtual Primitive * | copy () const |
must be implemented in order to obtain a deep and independent copy More... | |
const Vec & | getPos (int x, int y) const |
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 | |
int | w |
int | h |
const Vec * | vertices |
const Vec * | normals |
GeomColor | front |
GeomColor | back |
GeomColor | lines |
bool | drawLines |
bool | drawQuads |
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... | |
Grid primitive that renders a two-sided grid (sides have different colors)
|
inline |
|
inlinevirtual |
must be implemented in order to obtain a deep and independent copy
Implements icl::geom::Primitive.
|
inline |
|
inline |
|
virtual |
virtual render method, which is called by the parent scene object
Implements icl::geom::Primitive.
GeomColor icl::geom::TwoSidedGridPrimitive::back |
bool icl::geom::TwoSidedGridPrimitive::drawLines |
bool icl::geom::TwoSidedGridPrimitive::drawQuads |
GeomColor icl::geom::TwoSidedGridPrimitive::front |
int icl::geom::TwoSidedGridPrimitive::h |
GeomColor icl::geom::TwoSidedGridPrimitive::lines |
const Vec * icl::geom::TwoSidedGridPrimitive::normals |
const Vec* icl::geom::TwoSidedGridPrimitive::vertices |
int icl::geom::TwoSidedGridPrimitive::w |