latest 0.5 changes from Steven Baker, and fixed Windows MSVC compiling issues

This commit is contained in:
ejcoumans
2006-09-19 17:10:30 +00:00
parent eb6664f7c2
commit 4970e86100
12 changed files with 445 additions and 193 deletions

View File

@@ -3,6 +3,8 @@ GLuint makeTextureTarget ( GLuint textureHandle ) ;
void renderTo2DTexture ( GLuint fboHandle ) ;
void renderToFrameBuffer () ;
//#define NEED_STENCIL_BUFFER 1
enum fboDataType
{
#ifndef GL_BYTE
@@ -44,11 +46,12 @@ class FrameBufferObject
GLuint fboHandle ;
GLuint depth_rb ;
#ifdef NEED_STENCIL
#ifdef NEED_STENCIL_BUFFER
GLuint stencil_rb ;
#endif
void fillTexture ( void *data ) ;
void fillTexture ( void *data ) ;
void fetchTexture ( void *data ) ;
public:
FrameBufferObject ( int _width, /* Must be a power of two! */