Image Component Library (ICL)
|
#include <Primitive.h>
Public Member Functions | |
TexturePrimitive (int a, int b, int c, int d, const core::ImgBase *image=0, bool createTextureOnce=true, int na=-1, int nb=-1, int nc=-1, int nd=-1, core::scalemode sm=core::interpolateLIN) | |
create with given texture that is either copied once or everytime the primitive is rendered | |
TexturePrimitive (int a, int b, int c, int d, const core::Img8u &image, int na=-1, int nb=-1, int nc=-1, int nd=-1, core::scalemode sm=core::interpolateLIN) | |
create with given texture, that is copied once | |
virtual ICLGeom_API void | render (const Primitive::RenderContext &ctx) |
render method | |
virtual Primitive * | copy () const |
deep copy | |
Public Attributes | |
qt::GLImg | texture |
< internal texture | |
const core::ImgBase * | image |
< set if the texture shall be updated every time it is drawn |
Texture Primitive.
Texture Primitives hare two modes:
icl::geom::TexturePrimitive::TexturePrimitive | ( | int | a, |
int | b, | ||
int | c, | ||
int | d, | ||
const core::ImgBase * | image = 0 , |
||
bool | createTextureOnce = true , |
||
int | na = -1 , |
||
int | nb = -1 , |
||
int | nc = -1 , |
||
int | nd = -1 , |
||
core::scalemode | sm = core::interpolateLIN |
||
) | [inline] |
create with given texture that is either copied once or everytime the primitive is rendered
icl::geom::TexturePrimitive::TexturePrimitive | ( | int | a, |
int | b, | ||
int | c, | ||
int | d, | ||
const core::Img8u & | image, | ||
int | na = -1 , |
||
int | nb = -1 , |
||
int | nc = -1 , |
||
int | nd = -1 , |
||
core::scalemode | sm = core::interpolateLIN |
||
) | [inline] |
create with given texture, that is copied once
virtual Primitive* icl::geom::TexturePrimitive::copy | ( | ) | const [inline, virtual] |
virtual ICLGeom_API void icl::geom::TexturePrimitive::render | ( | const Primitive::RenderContext & | ctx | ) | [virtual] |
render method
Reimplemented from icl::geom::QuadPrimitive.
Reimplemented in icl::geom::TextPrimitive.
< set if the texture shall be updated every time it is drawn
< internal texture
Reimplemented from icl::geom::Primitive.