Ignore:
Timestamp:
08/21/08 16:31:03 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredShader.h

    r2858 r2859  
    33 
    44#include "common.h" 
     5#include "glInterface.h" 
     6#include <Cg/cg.h> 
     7#include <Cg/cgGL.h> 
     8 
    59 
    610namespace CHCDemoEngine  
     
    913class FrameBufferObject; 
    1014 
    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 
    1218*/ 
    1319class DeferredShader 
    1420{ 
    1521public: 
    16         /** constructor requesting an opengl occlusion query. 
     22        /** constructor for a deferred shader taking the requested output image size 
    1723        */ 
    18         DeferredShader(); 
     24        DeferredShader(int w, int h); 
    1925 
    2026        /** The algorithm renders the scene given an fbo. 
     
    2228        */ 
    2329        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 
     37protected: 
     38 
     39        int mWidth; 
     40        int mHeight; 
    2441}; 
    2542 
Note: See TracChangeset for help on using the changeset viewer.