Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::geom::SharedTexturePrimitive Struct Reference

The shared texture primitive references a texture from the parent SceneObject. More...

#include <Primitive.h>

Inheritance diagram for icl::geom::SharedTexturePrimitive:
icl::geom::QuadPrimitive icl::geom::AlphaFuncProperty icl::math::FixedColVector< int, 8 > icl::geom::Primitive icl::math::FixedMatrix< int, 1, DIM > icl::utils::FixedArray< int, COLS *ROWS > icl::math::FixedMatrixBase

List of all members.

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 Primitivecopy () const
 deep copy

Public Attributes

int sharedTextureIndex

Detailed Description

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


Constructor & Destructor Documentation

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


Member Function Documentation

virtual Primitive* icl::geom::SharedTexturePrimitive::copy ( ) const [inline, virtual]

deep copy

Reimplemented from icl::geom::QuadPrimitive.

render method

Reimplemented from icl::geom::QuadPrimitive.


Member Data Documentation


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines