- Timestamp:
- 10/17/08 16:32:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.h
r3027 r3038 22 22 23 23 24 typedef std::vector<FrameBufferObject *> FBOContainer;25 24 26 25 /** This class implements a deferred shading algorithm that takes … … 64 63 65 64 void SetShadingMethod(SHADING_METHOD s); 66 67 /** Initialises the deferred shader and loads the required shaders:68 This function has to be called only once.69 */70 static void InitCG(CGcontext context);71 /** Releases all shader resources.72 */73 static void ReleaseCG();74 65 66 // hack: store the color buffer idx for the first flipflip-mrt here 67 // TODO matt: make this less hacky 75 68 static int colorBufferIdx; 69 76 70 77 71 protected: … … 92 86 void FirstPassShadow(FrameBufferObject *fbo, DirectionalLight *light, ShadowMap *shadowMap); 93 87 94 void ComputeToneParameters(FrameBufferObject *fbo, DirectionalLight *light, float &imageKey, float &whiteLum, float &middleGrey); 88 void ComputeToneParameters(FrameBufferObject *fbo, 89 DirectionalLight *light, 90 float &imageKey, 91 float &whiteLum, 92 float &middleGrey); 95 93 96 94 void ToneMap(FrameBufferObject *fbo, float imageKey, float whiteLum, float middleGrey); … … 113 111 void DrawQuad(ShaderProgram *p); 114 112 115 static bool InitProgram(ShaderProgram **program,116 CGcontext context,117 const std::string &filename,118 const std::string &functionName);113 /** Initialises the deferred shader and loads the required shaders: 114 This function has to be called only once. 115 */ 116 void InitCg(); 119 117 120 118 … … 145 143 }; 146 144 145 147 146 } // namespace 148 147
Note: See TracChangeset
for help on using the changeset viewer.