6 #ifndef __diguyOsgGraphicsInstanceGroup_H
7 #define __diguyOsgGraphicsInstanceGroup_H
13 #include <osg/Version>
21 #if OSG_MIN_VERSION_REQUIRED(3,2,0)
32 #define USE_SHARED_TBO
34 #if USE_OSG_TEXTURE_BUFFER
35 #include <osg/TextureBuffer>
43 #include <diguyGraphicsInstanceGroup.h>
48 class DtGLTextureBufferObject;
66 virtual void unbuild();
67 virtual void update();
70 void build_shared_tbo();
71 void update_shared_tbo();
73 void create_and_add_shared_tbo_to_state_set(osg::StateSet& state_set);
78 #ifdef USE_OSG_TEXTURE_BUFFER
80 static osg::ref_ptr<osg::TextureBuffer> s_osg_texture_buffer;
81 static osg::ref_ptr<osg::Image> s_osg_image;
106 #endif __diguyOsgGraphicsInstanceGroup_H