Ignore:
Timestamp:
08/28/08 09:12:34 (16 years ago)
Author:
mattausch
Message:

for some reasons very slow even in small streets on my home computer!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/FrameBufferObject.cpp

    r2867 r2878  
    127127 
    128128 
     129ColorBufferObject::~ColorBufferObject() 
     130{ 
     131        glDeleteRenderbuffersEXT(1, &mId); 
     132        glDeleteTextures(1, &mTexId); 
     133} 
     134 
     135 
    129136FrameBufferObject::FrameBufferObject(int w, int h, DEPTH_FORMAT d, bool useDepthTex) 
    130137: mWidth(w), mHeight(h), mDepthTexId(0) 
     
    187194 
    188195 
     196FrameBufferObject::~FrameBufferObject() 
     197{ 
     198        glDeleteFramebuffersEXT(1, &mId); 
     199        glDeleteRenderbuffersEXT(1, &mDepthId); 
     200 
     201        if (mDepthTexId) glDeleteTextures(1, &mDepthTexId); 
     202 
     203        CLEAR_CONTAINER(mColorBuffers); 
     204} 
     205 
     206 
    189207int FrameBufferObject::AddColorBuffer(ColorBufferObject::FORMAT col,  
    190208                                                                          ColorBufferObject::WRAP_TYPE wrapType,  
Note: See TracChangeset for help on using the changeset viewer.