VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDiGuyOsgGraphicsShaderProgram.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
11 
12 #include <osg/Program>
13 #include <osg/Shader>
14 
15 
19 {
20 public:
22  DtDiGuyOsgGraphicsShaderProgram(void* internal_data);
23 
26 
30  virtual int load_vertex_shader_source(const char* filename);
31 
35  virtual int load_pixel_shader_source(const char* filename);
36 
38  virtual int reload();
39 
41  virtual int link();
42 
44  osg::StateAttribute* get_program() {return myProgram.get();}
45 
46 protected:
47 
48  char myVertexShaderFilename[512];
49  char myFragmentShaderFilename[512];
50 
51  osg::ref_ptr<osg::Program> myProgram;
52  osg::ref_ptr<osg::Shader> myVertexShader;
53  osg::ref_ptr<osg::Shader> myFragmentShader;
54 };
55 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)