- Timestamp:
- 08/21/08 16:31:03 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/FrameBufferObject.h
r2857 r2859 27 27 bool useMultiSampling); 28 28 29 unsigned int GetTexture() const {return mTexId;} 30 29 31 protected: 30 32 … … 41 43 42 44 enum DEPTH_FORMAT { DEPTH_16, DEPTH_24, DEPTH_32 }; 45 43 46 /** constructor requesting an opengl occlusion query. 44 47 */ 45 48 FrameBufferObject(int w, int h, bool useDepth, DEPTH_FORMAT d); 46 49 /** Creates and adds a color buffer to the current frame buffer object. 47 Returns a pointer to the buffer object50 Returns the index that allows to retrieve the color buffer object. 48 51 */ 49 ColorBufferObject *AddColorBuffer(ColorBufferObject::FORMAT col, 50 ColorBufferObject::WRAP_TYPE wrapType, 51 ColorBufferObject::FILTER_TYPE filterType, 52 bool useMipMap, 53 bool useMultiSampling); 52 int AddColorBuffer(ColorBufferObject::FORMAT col, 53 ColorBufferObject::WRAP_TYPE wrapType, 54 ColorBufferObject::FILTER_TYPE filterType, 55 bool useMipMap, 56 bool useMultiSampling); 57 58 /** Returns the color buffer object on position i. 59 */ 60 ColorBufferObject *GetColorBuffer(int i) const { return mColorBuffers[i]; } 61 54 62 55 63 protected:
Note: See TracChangeset
for help on using the changeset viewer.