DI-Guy SDK Documentation  13.7
diguyOsgGraphicsShaderInstance Class Reference

#include <diguyOsgGraphicsShaderInstance.h>

Inheritance diagram for diguyOsgGraphicsShaderInstance:
diguyGraphicsShaderInstance

Public Member Functions

 diguyOsgGraphicsShaderInstance (void *internal_data)
 
 ~diguyOsgGraphicsShaderInstance ()
 
osg::StateSet * get_state_set ()
 
- Public Member Functions inherited from diguyGraphicsShaderInstance
diguyGraphicsShaderTechniqueget_shader_technique ()
 This function returns the shader technique this shader instance is associated with. More...
 
diguyCharacterget_character ()
 This function returns a pointer to the character that this shader instance is associated with. More...
 
virtual int bind ()
 This function will be called by DI-Guy when it is time for the object that this shader instance is attached to to be rendered. More...
 
virtual int unbind ()
 This function will be called by DI-Guy when the object this shader is attached to is done being rendered. More...
 
int get_num_variables ()
 
const char * get_variable_name_at_index (int index)
 
int has_variable (const char *name)
 
const char * get_variable_type (const char *name)
 
void reset_variables_to_initial_values ()
 
void reset_variables_to_program_defaults ()
 
int set_variable_float (const char *name, float value, int set_current=1, int set_initial=0, float blend_time=0.0f)
 
int set_variable_vec2 (const char *name, float x, float y, int set_current=1, int set_initial=0, float blend_time=0.0f)
 
int set_variable_vec3 (const char *name, float x, float y, float z, int set_current=1, int set_initial=0, float blend_time=0.0f)
 
int set_variable_vec4 (const char *name, float x, float y, float z, float w, int set_current=1, int set_initial=0, float blend_time=0.0f)
 
int set_variable_int (const char *name, int value, int set_current=1, int set_initial=0)
 
int get_variable_float (const char *name, float *value, int get_current=1)
 
int get_variable_vec2 (const char *name, float *x, float *y, int get_current=1)
 
int get_variable_vec3 (const char *name, float *x, float *y, float *z, int get_current=1)
 
int get_variable_vec4 (const char *name, float *r, float *g, float *b, float *a, int get_current=1)
 
int get_variable_int (const char *name, int *value, int get_current=1)
 
diguyGraphicsShaderProgramget_shader_program ()
  Deprecated Functions: changed due to API restructuring More...
 
bdiShaderProgramInstanceget_internal_data ()
 

Public Attributes

osg::ref_ptr< osg::Uniform > m_ufrm_apply_matrices_flag
 
osg::ref_ptr< osg::Uniform > m_ufrm_textures_enabled
 

Protected Attributes

osg::ref_ptr< osg::StateSet > m_shader_state_set
 

Additional Inherited Members

- Protected Member Functions inherited from diguyGraphicsShaderInstance
 diguyGraphicsShaderInstance (void *internal_data)
 A protected constructor. More...
 
virtual ~diguyGraphicsShaderInstance ()
 A protected destructor. More...
 

Constructor & Destructor Documentation

diguyOsgGraphicsShaderInstance::diguyOsgGraphicsShaderInstance ( void *  internal_data)
diguyOsgGraphicsShaderInstance::~diguyOsgGraphicsShaderInstance ( )

Member Function Documentation

osg::StateSet * diguyOsgGraphicsShaderInstance::get_state_set ( )

Member Data Documentation

osg::ref_ptr<osg::Uniform> diguyOsgGraphicsShaderInstance::m_ufrm_apply_matrices_flag
osg::ref_ptr<osg::Uniform> diguyOsgGraphicsShaderInstance::m_ufrm_textures_enabled
osg::ref_ptr<osg::StateSet> diguyOsgGraphicsShaderInstance::m_shader_state_set
protected

The documentation for this class was generated from the following files: