- Timestamp:
- 08/21/08 16:31:03 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredShader.h
r2858 r2859 3 3 4 4 #include "common.h" 5 #include "glInterface.h" 6 #include <Cg/cg.h> 7 #include <Cg/cgGL.h> 8 5 9 6 10 namespace CHCDemoEngine … … 9 13 class FrameBufferObject; 10 14 11 /** This class implements a deferred shading algorithm. 15 16 /** This class implements a deferred shading algorithm that takes 17 a frame buffer object as input and outputs an image in the given size 12 18 */ 13 19 class DeferredShader 14 20 { 15 21 public: 16 /** constructor requesting an opengl occlusion query.22 /** constructor for a deferred shader taking the requested output image size 17 23 */ 18 DeferredShader( );24 DeferredShader(int w, int h); 19 25 20 26 /** The algorithm renders the scene given an fbo. … … 22 28 */ 23 29 void Render(FrameBufferObject *fbo); 30 31 /** Initialises the deferred shader and loads the required shaders: 32 This function has to be called only once. 33 */ 34 static void Init(CGcontext context); 35 36 37 protected: 38 39 int mWidth; 40 int mHeight; 24 41 }; 25 42
Note: See TracChangeset
for help on using the changeset viewer.