35 #ifndef ANATOMIST_PRIMITIVE_PRIMITIVE_H 36 #define ANATOMIST_PRIMITIVE_PRIMITIVE_H 57 virtual bool ghost()
const;
73 const std::list<unsigned> & glLists()
const;
74 const std::list<unsigned> &
textures()
const;
75 void insertList(
unsigned );
76 void insertTexture(
unsigned );
77 void deleteList(
unsigned );
78 void deleteTexture(
unsigned );
95 inline GLList(
unsigned gllist = 0 ) :
GLItem(), _item( gllist ) {}
99 unsigned item()
const {
return _item; }
102 virtual void generate();
118 unsigned item()
const {
return _item; }
121 virtual void generate();
std::list< RefGLItem > items
virtual bool ghost() const
ghost lists are not selectable and not rendered in Z buffers for selection
carto::rc_ptr< GLTexture > RefGLTexture
carto::rc_ptr< GLItem > RefGLItem
carto::rc_ptr< GLList > RefGLList
std::list< unsigned > _gll
virtual void callList() const =0
renders the display list
Multiple display lists and texture objects.
carto::rc_ptr< Primitive > RefPrimitive
OpenGL item (display list, texture, ...) with reference counter and cleanup upon destruction.
GLTexture(unsigned gltex=0)
virtual void setGhost(bool)
std::list< RefGLItem > GLPrimitives
carto::rc_ptr< GLItemList > RefGLItemList
std::list< unsigned > _tex
GLList(unsigned gllist=0)
virtual void callList() const
renders the display list