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) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 // this doesn't work anymore been replaced with virtual programs
11 #if 0
12 
14 
15 #include <osg/Program>
16 #include <osg/Shader>
17 
18 
21 class DT_DLL_VRVDIGUY DtDiGuyOsgGraphicsShaderProgram : public DtDiGuyOsgGraphicsShaderProgramInterface
22 {
23 public:
25  DtDiGuyOsgGraphicsShaderProgram(void* internal_data);
26 
28  ~DtDiGuyOsgGraphicsShaderProgram();
29 
33  virtual int load_vertex_shader_source(const char* filename);
34 
38  virtual int load_pixel_shader_source(const char* filename);
39 
41  virtual int load();
42 
44  virtual int link();
45 
47  osg::StateAttribute* get_program() {return myProgram.get();}
48 
49 protected:
50 
51  char myVertexShaderFilename[512];
52  char myFragmentShaderFilename[512];
53 
54  osg::ref_ptr<osg::Program> myProgram;
55  osg::ref_ptr<osg::Shader> myVertexShader;
56  osg::ref_ptr<osg::Shader> myFragmentShader;
57 };
58 
62 diguyGraphicsShaderProgram* DtDiGuyOsgGraphicsShaderProgram_create_func(void* internal_data);
63 #endif

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)