Image Component Library (ICL)
|
The shared texture primitive references a texture from the parent SceneObject. More...
#include <Primitive.h>
Public Member Functions | |
SharedTexturePrimitive (int a, int b, int c, int d, int sharedTextureIndex, int na=-1, int nb=-1, int nc=-1, int nd=-1) | |
create with given texture that is either copied once or everytime the primitive is rendered | |
virtual ICLGeom_API void | render (const Primitive::RenderContext &ctx) |
render method | |
virtual Primitive * | copy () const |
deep copy | |
Public Attributes | |
int | sharedTextureIndex |
The shared texture primitive references a texture from the parent SceneObject.
Therefore, shared textures can be reused in order to avoid that identical textures have to be hold several times in the graphics hardware memory
icl::geom::SharedTexturePrimitive::SharedTexturePrimitive | ( | int | a, |
int | b, | ||
int | c, | ||
int | d, | ||
int | sharedTextureIndex, | ||
int | na = -1 , |
||
int | nb = -1 , |
||
int | nc = -1 , |
||
int | nd = -1 |
||
) | [inline] |
create with given texture that is either copied once or everytime the primitive is rendered
virtual Primitive* icl::geom::SharedTexturePrimitive::copy | ( | ) | const [inline, virtual] |
deep copy
Reimplemented from icl::geom::QuadPrimitive.
virtual ICLGeom_API void icl::geom::SharedTexturePrimitive::render | ( | const Primitive::RenderContext & | ctx | ) | [virtual] |
render method
Reimplemented from icl::geom::QuadPrimitive.