Search
lxdream.org :: lxdream/src/pvr2/glutil.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.h
changeset 1210:79bbd30363f4
prev1207:f7ca985659c6
next1219:3966d3e55351
author nkeynes
date Tue Feb 07 14:27:13 2012 +1000 (9 years ago)
permissions -rw-r--r--
last change Add wrangling for some of the core vs EXT/ARB versions of functions + macros
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.h Tue Feb 07 11:20:00 2012 +1000
1.2 +++ b/src/pvr2/glutil.h Tue Feb 07 14:27:13 2012 +1000
1.3 @@ -57,7 +57,51 @@
1.4
1.5 /****** Extension variant wrangling *****/
1.6
1.7 +#if defined(GL_MIRRORED_REPEAT_ARB) && !defined(GL_MIRRORED_REPEAT)
1.8 +#define GL_MIRRORED_REPEAT GL_MIRRORED_REPEAT_ARB
1.9 +#endif
1.10
1.11 +#if defined(GL_FRAMEBUFFER_EXT) && !defined(GL_FRAMEBUFFER)
1.12 +#define GL_FRAMEBUFFER GL_FRAMEBUFFER_EXT
1.13 +#endif
1.14 +
1.15 +#if defined(GL_RENDERBUFFER_EXT) && !defined(GL_RENDERBUFFER)
1.16 +#define GL_RENDERBUFFER GL_RENDERBUFFER_EXT
1.17 +#endif
1.18 +
1.19 +#if defined(GL_COLOR_ATTACHMENT0_EXT) && !defined(GL_COLOR_ATTACHMENT0)
1.20 +#define GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0_EXT
1.21 +#endif
1.22 +
1.23 +#if defined(GL_MAX_COLOR_ATTACHMENTS_EXT) && !defined(GL_MAX_COLOR_ATTACHMENTS)
1.24 +#define GL_MAX_COLOR_ATTACHMENTS GL_MAX_COLOR_ATTACHMENTS_EXT
1.25 +#endif
1.26 +
1.27 +#if defined(GL_STENCIL_ATTACHMENT_EXT) && !defined(GL_STENCIL_ATTACHMENT)
1.28 +#define GL_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT_EXT
1.29 +#endif
1.30 +
1.31 +#if defined(GL_DEPTH_ATTACHMENT_EXT) && !defined(GL_DEPTH_ATTACHMENT)
1.32 +#define GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT_EXT
1.33 +#endif
1.34 +
1.35 +#if defined(GL_FRAMEBUFFER_COMPLETE_EXT) && !defined(GL_FRAMEBUFFER_COMPLETE)
1.36 +#define GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_EXT
1.37 +#endif
1.38 +
1.39 +#if defined(HAVE_OPENGL_FBO_EXT) && !defined(HAVE_OPENGL_FBO)
1.40 +#define glGenFramebuffers glGenFramebuffersEXT
1.41 +#define glGenRenderbuffers glGenRenderbuffersEXT
1.42 +#define glBindFramebuffer glBindFramebufferEXT
1.43 +#define glDeleteFramebuffers glDeleteFramebuffersEXT
1.44 +#define glDeleteRenderbuffers glDeleteRenderbuffersEXT
1.45 +#define glBindFramebuffer glBindFramebufferEXT
1.46 +#define glBindRenderbuffer glBindRenderbufferEXT
1.47 +#define glRenderbufferStorage glRenderbufferStorageEXT
1.48 +#define glFramebufferRenderbuffer glFramebufferRenderbufferEXT
1.49 +#define glFramebufferTexture2D glFramebufferTexture2DEXT
1.50 +#define glCheckFramebufferStatus glCheckFramebufferStatusEXT
1.51 +#endif
1.52
1.53
1.54 /****** Shader handling (gl_sl.c) *****/
.