filename | src/pvr2/glutil.h |
changeset | 636:2ccf94f966fc |
prev | 635:76c63aac3590 |
next | 1066:ddffe9d2b332 |
author | nkeynes |
date | Tue Mar 11 08:50:16 2008 +0000 (16 years ago) |
branch | lxdream-render |
permissions | -rw-r--r-- |
last change | Use maxz rather than minz for tri sorting (better results atm) Change depth-test-disable to depth-mask (more correct) Implement alpha test for punchthru polys |
view | annotate | diff | log | raw |
1 /**
2 * $Id$
3 *
4 * GL-based support functions
5 *
6 * Copyright (c) 2005 Nathan Keynes.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */
19 #ifndef lxdream_glutil_H
20 #define lxdream_glutil_H
22 #include "display.h"
24 /**
25 * Test if a specific extension is supported. From opengl.org
26 * @param extension extension name to check for
27 * @return TRUE if supported, otherwise FALSE.
28 */
29 gboolean isGLExtensionSupported( const char *extension );
32 /****** Shader handling (gl_sl.c) *****/
33 gboolean glsl_is_supported(void);
34 gboolean glsl_load_shaders( const char *vert_shader, const char *frag_shader );
35 void glsl_unload_shaders(void);
37 extern const char *glsl_vertex_shader_src;
38 extern const char *glsl_fragment_shader_src;
40 #endif /* !lxdream_glutil_H */
.