Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 667:0e1ac8da75d9
prev653:3202ff01d48e
next687:6bdc2b7032ea
author nkeynes
date Sat Apr 19 02:39:37 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Centralize gl ext checks in glutil.c
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.c Fri Mar 28 12:32:25 2008 +0000
1.2 +++ b/src/pvr2/glutil.c Sat Apr 19 02:39:37 2008 +0000
1.3 @@ -18,6 +18,26 @@
1.4 #include <string.h>
1.5 #include "pvr2/glutil.h"
1.6
1.7 +gboolean isGLSecondaryColorSupported()
1.8 +{
1.9 + return isGLExtensionSupported("GL_EXT_secondary_color");
1.10 +}
1.11 +
1.12 +gboolean isGLVertexBufferSupported()
1.13 +{
1.14 + return isGLExtensionSupported("GL_ARB_vertex_buffer_object");
1.15 +}
1.16 +
1.17 +gboolean isGLPixelBufferSupported()
1.18 +{
1.19 + return isGLExtensionSupported("GL_ARB_pixel_buffer_object");
1.20 +}
1.21 +
1.22 +gboolean isGLMirroredTextureSupported()
1.23 +{
1.24 + return isGLExtensionSupported("GL_ARB_texture_mirrored_repeat");
1.25 +}
1.26 +
1.27 /**
1.28 * Test if a specific extension is supported. From opengl.org
1.29 * @param extension extension name to check for
.