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/FrameBufferObject.h

    r2857 r2859  
    2727                                          bool useMultiSampling); 
    2828 
     29        unsigned int GetTexture() const {return mTexId;} 
     30 
    2931protected: 
    3032 
     
    4143 
    4244        enum DEPTH_FORMAT { DEPTH_16, DEPTH_24, DEPTH_32 }; 
     45 
    4346        /** constructor requesting an opengl occlusion query. 
    4447        */ 
    4548        FrameBufferObject(int w, int h, bool useDepth, DEPTH_FORMAT d); 
    4649        /** Creates and adds a color buffer to the current frame buffer object. 
    47                 Returns a pointer to the buffer object 
     50                Returns the index that allows to retrieve the color buffer object. 
    4851        */ 
    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 
    5462 
    5563protected: 
Note: See TracChangeset for help on using the changeset viewer.