42 #ifndef INCLUDED_FRAME_BUFFER_UTILITY_H
43 #define INCLUDED_FRAME_BUFFER_UTILITY_H
47 #if defined( __APPLE__ ) || ( defined( GLES ) && defined( LINUX ) ) || defined( __VXWORKS__ ) || defined( QNX )
49 # define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES
50 # define GL_DEPTH_STENCIL GL_DEPTH_STENCIL_OES
51 # define GL_UNSIGNED_INT_24_8 GL_UNSIGNED_INT_24_8_OES
52 # define GL_DEPTH_COMPONENT24 GL_DEPTH_COMPONENT24_OES
55 # define GL_FRAMEBUFFER GL_FRAMEBUFFER_OES
56 # define GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_OES
57 # define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES
58 # define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES
59 # define GL_FRAMEBUFFER_UNSUPPORTED GL_FRAMEBUFFER_UNSUPPORTED_OES
60 # define GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0_OES
62 # define GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT_OES
63 # define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_OES
64 # define GL_RENDERBUFFER GL_RENDERBUFFER_OES
65 # define GL_DEPTH_COMPONENT16 GL_DEPTH_COMPONENT16_OES
67 # define glCheckFramebufferStatus glCheckFramebufferStatusOES
68 # define glBindFramebuffer glBindFramebufferOES
69 # define glGenFramebuffers glGenFramebuffersOES
70 # define glDeleteFramebuffers glDeleteFramebuffersOES
71 # define glDeleteRenderbuffers glDeleteRenderbuffersOES
72 # define glFramebufferTexture2D glFramebufferTexture2DOES
73 # define glGenerateMipmap glGenerateMipmapOES
74 # define glClearBufferfv glClearBufferfvOES
75 # define glGenRenderbuffers glGenRenderbuffersOES
76 # define glBindRenderbuffer glBindRenderbufferOES
77 # define glRenderbufferStorage glRenderbufferStorageOES
78 # define glFramebufferRenderbuffer glFramebufferRenderbufferOES
104 static bool frameBufferSupportAvailable;
105 static bool frameBufferSupportInitialized;
110 static void initializeFrameBufferSupport();
117 #endif // INCLUDED_FRAME_BUFFER_UTILITY_H
Definition: frame_buffer_utility.h:85
static bool checkFrameBufferStatus()
static bool frameBuffersAreSupported()
Definition: bmpimage.h:46