filename | src/pvr2/glutil.h |
changeset | 736:a02d1475ccfd |
prev | 687:6bdc2b7032ea |
next | 1066:ddffe9d2b332 |
author | nkeynes |
date | Mon Jan 26 07:26:24 2009 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Add read_byte_for_write mem function for correct implementation of AND.B and friends with TLB enabled. Add read_byte and read_long MMIO stubs to do correct sign extension of IO reads |
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 <stdio.h>
23 #include "display.h"
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 /**
30 * Test if a specific extension is supported. From opengl.org
31 * @param extension extension name to check for
32 * @return TRUE if supported, otherwise FALSE.
33 */
34 gboolean isGLExtensionSupported( const char *extension );
36 /**
37 * Dump GL information to the output stream, usually for debugging purposes
38 */
39 void glPrintInfo( FILE *out );
41 /**
42 * Test if secondary color (GL_COLOR_SUM) is supported.
43 */
44 gboolean isGLSecondaryColorSupported();
46 gboolean isGLVertexBufferSupported();
47 gboolean isGLPixelBufferSupported();
48 gboolean isGLMirroredTextureSupported();
50 /****** Shader handling (gl_sl.c) *****/
51 gboolean glsl_is_supported(void);
52 gboolean glsl_load_shaders( const char *vert_shader, const char *frag_shader );
53 void glsl_unload_shaders(void);
54 void glsl_enable_shaders( gboolean enable );
56 extern const char *glsl_vertex_shader_src;
57 extern const char *glsl_fragment_shader_src;
59 #ifdef __cplusplus
60 }
61 #endif
63 #endif /* !lxdream_glutil_H */
.