7 #ifndef __diguyOsgGraphicsInstanceGroup_H
8 #define __diguyOsgGraphicsInstanceGroup_H
10 #include <osg/Version>
15 #if OSG_MIN_VERSION_REQUIRED(3,2,0)
19 #include <osg/TextureBuffer>
33 diguyOsgGraphicsInstanceGroup(
void* internal_data);
40 void build_tbo_per_group();
41 void build_shared_tbo();
43 void update_tbo_per_group();
44 void update_shared_tbo();
47 static osg::ref_ptr<osg::Image> s_image;
48 static osg::ref_ptr<osg::Group> s_instancing_node;
51 osg::ref_ptr<osg::Image> m_image;
53 osg::ref_ptr<osg::Geode> m_geode;
54 osg::ref_ptr<osg::Geometry> m_geometry;
55 osg::ref_ptr<osg::PrimitiveSet> m_primitiveSet;
57 osg::ref_ptr<osg::TextureBuffer> m_texture_buffer;
59 osg::ref_ptr<osg::Uniform> ufrm_link_matrices_start;
60 osg::ref_ptr<osg::Uniform> ufrm_link_matrices_count;
64 #endif // OSG_MIN_VERSION_REQUIRED(3,2,0)
66 #endif __diguyOsgGraphicsInstanceGroup_H