- Timestamp:
- 08/25/08 20:20:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/FrameBufferObject.cpp
r2862 r2866 168 168 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 169 169 170 glTexImage2D(GL_TEXTURE_2D, 0, depthFormat, w, h, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL);170 glTexImage2D(GL_TEXTURE_2D, 0, depthFormat, mWidth, mHeight, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL); 171 171 172 172 glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_TEXTURE_2D, mDepthTexId, 0); … … 178 178 179 179 180 int FrameBufferObject::AddColorBuffer(ColorBufferObject::FORMAT col, 180 int FrameBufferObject::AddColorBuffer(int w, int h, 181 ColorBufferObject::FORMAT col, 181 182 ColorBufferObject::WRAP_TYPE wrapType, 182 183 ColorBufferObject::FILTER_TYPE filterType, … … 190 191 int idx = (int)mColorBuffers.size(); 191 192 ColorBufferObject *colorBuf = 192 new ColorBufferObject( mWidth, mHeight, col, wrapType, filterType, useMipMap, useMultiSampling, idx);193 new ColorBufferObject(w, h, col, wrapType, filterType, useMipMap, useMultiSampling, idx); 193 194 194 195 mColorBuffers.push_back(colorBuf);
Note: See TracChangeset
for help on using the changeset viewer.