10 #include <osg/Program>
45 virtual int link()
override;
osg::ref_ptr< osg::Shader > m_fragment_shader
Definition: diguyOsgGraphicsShaderProgram.h:56
char m_fragment_shader_filename[512]
Definition: diguyOsgGraphicsShaderProgram.h:52
Definition: diguyOsgGraphicsShaderProgram.h:34
diguyGraphicsShaderProgram * diguyOsgGraphicsShaderProgram_create_func(void *internal_data)
Create function declaration.
char m_vertex_shader_filename[512]
Definition: diguyOsgGraphicsShaderProgram.h:51
osg::ref_ptr< osg::Program > m_program
Definition: diguyOsgGraphicsShaderProgram.h:54
virtual int link() override
This function will be called by DI-Guy when it is time for the shader program to be linked...
virtual int load_pixel_shader_source(const char *filename) override
This function is the pixel shader (AKA fragment shader in OpenGL) equivalent of load_vertex_shader_so...
osg::ref_ptr< osg::Shader > m_vertex_shader
Definition: diguyOsgGraphicsShaderProgram.h:55
~diguyOsgGraphicsShaderProgram()
diguyOsgGraphicsShaderProgram(void *internal_data)
virtual int load_vertex_shader_source(const char *filename) override
This function will be called by DI-Guy when it is time for the vertex part of this shader to be loade...
osg::Program * get_program()
Definition: diguyOsgGraphicsShaderProgram.h:46
This class implements shader programs for use with DI-Guy character graphics.
Definition: diguyGraphicsShaderProgram.h:94