DI-Guy C++ SDK Reference
13.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
diguyOsgGraphicsShaderProgram.h
Go to the documentation of this file.
1
#ifndef diguyOsgGraphicsShaderProgram_h__
2
#define diguyOsgGraphicsShaderProgram_h__
3
4
5
/*********************************************************************
6
**
7
*2 diguyOsgGraphicsShaderProgram
8
**
9
*/
10
11
#include <
diguyGraphicsShaderProgram.h
>
12
13
#include <osg/Program>
14
#include <osg/Shader>
15
16
/**********************************************************************
17
**
18
** Class declaration. diguyOsgGraphicsShaderProgram publicly inherits
19
** diguyGraphicsShaderProgram. Virtual functions are declared for some of
20
** the virtual functions in the base class.
21
*/
22
class
diguyOsgGraphicsShaderProgram
:
public
diguyGraphicsShaderProgram
23
{
24
25
public
:
26
27
diguyOsgGraphicsShaderProgram
(
void
* internal_data);
28
~diguyOsgGraphicsShaderProgram
();
29
30
virtual
int
load_vertex_shader_source
(
const
char
* filename);
31
virtual
int
load_pixel_shader_source
(
const
char
* filename);
32
virtual
int
reload
();
33
virtual
int
link
();
34
35
osg::Program*
get_program
() {
return
m_program
.get();}
36
37
38
39
protected
:
40
41
char
m_vertex_shader_filename
[512];
42
char
m_fragment_shader_filename
[512];
43
44
osg::ref_ptr<osg::Program>
m_program
;
45
osg::ref_ptr<osg::Shader>
m_vertex_shader
;
46
osg::ref_ptr<osg::Shader>
m_fragment_shader
;
47
48
};
49
50
55
diguyGraphicsShaderProgram
*
diguyOsgGraphicsShaderProgram_create_func
(
void
* internal_data);
56
57
#endif // diguyOsgGraphicsShaderProgram_h__
diguy
programming_examples
diguy_graphics_api
osg_2_examples
common
diguyOsgGraphicsShaderProgram.h
Generated on Wed Jul 9 2014 21:35:58 for DI-Guy C++ SDK Reference by
1.8.3.1