9 #include <osg/Texture2D>
42 static void set_use_pixel_lods(
bool use_pixel_lods) {s_use_pixel_lods = use_pixel_lods;}
57 std::vector<osg::Geode*> m_geodes;
60 void create_shared_variation_texture();
61 void create_variation_texture(
unsigned char * variation_texture_data);
63 osg::ref_ptr<osg::Switch> m_switch_node;
69 osg::ref_ptr<osg::LOD> m_lod_node;
71 static bool s_use_pixel_lods;
72 osg::ref_ptr<osg::StateSet> m_state_set;
73 osg::ref_ptr<osg::Uniform> m_ufrm_link_matrices;
74 osg::ref_ptr<osg::Uniform> m_ufrm_link_colors;
75 osg::ref_ptr<osg::Uniform> m_ufrm_component_map_row;
78 static osg::ref_ptr<osg::Texture2D> sm_variation_texture;
virtual void unbuild()
This function will be called by DI-Guy when it is time for the renderer-specific shape objects create...
Definition: diguyOsgGraphicsShape.cpp:471
static char * s_ufrm_link_colors_string
Definition: diguyOsgGraphicsShape.h:52
virtual void show()
This function will be called by DI-Guy when the shape should be shown, typically due to a change in t...
Definition: diguyOsgGraphicsShape.cpp:537
diguyOsgGraphicsShape(void *internal_data)
Definition: diguyOsgGraphicsShape.cpp:52
diguyGraphicsShape * diguyOsgGraphicsShape_create_func(void *internal_data)
Create function declaration.
Definition: diguyOsgGraphicsShape.cpp:745
virtual void build()
This function will be called by DI-Guy when it is time for renderer-specific shape objects to be crea...
Definition: diguyOsgGraphicsShape.cpp:223
static void set_use_pixel_lods(bool use_pixel_lods)
Definition: diguyOsgGraphicsShape.h:39
virtual void hide()
This function will be called by DI-Guy when the shape should be hidden, typically due to a change in ...
Definition: diguyOsgGraphicsShape.cpp:561
virtual void update_variation_texture(int num_pixels, unsigned char *pixel_data)
Pushes a char * pixel buffer of length num_pixels that represents the unique per shape texture...
Definition: diguyOsgGraphicsShape.cpp:730
Shapes are the high-level containers of visible geometry.
Definition: diguyOsgGraphicsShape.h:21
virtual void set_graphics_lod(int lod)
This function will be called by DI-Guy when the LOD of this link is "manually" set by a diguyCharacte...
Definition: diguyOsgGraphicsShape.cpp:723
static char * s_ufrm_link_matrices_string
Definition: diguyOsgGraphicsShape.h:51
virtual void update()
This function will be called by DI-Guy when it is time for renderer-specific shape objects created du...
Definition: diguyOsgGraphicsShape.cpp:591
A class that represents the unique per-character non-shared mesh object. DI-Guy encapsulates its text...
Definition: diguyGraphicsShape.h:51
virtual void set_graphics_lod_ranges(float *lod_ranges)
This function will be called by DI-Guy when the LOD ranges of this shape need to be updated after the...
Definition: diguyOsgGraphicsShape.cpp:693
virtual void instancing_state_changed(int val)
Definition: diguyOsgGraphicsShape.cpp:573