filename | src/pvr2/glutil.h |
changeset | 635:76c63aac3590 |
next | 636:2ccf94f966fc |
author | nkeynes |
date | Thu Feb 14 13:54:11 2008 +0000 (16 years ago) |
branch | lxdream-render |
permissions | -rw-r--r-- |
last change | Commit render work in progress. Main changes: * Preliminary OSMesa support * Move the generic gl code out to pvr2/ * Implement scene data structure + reader * Remove the 1/z adjustments |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/src/pvr2/glutil.h Thu Feb 14 13:54:11 2008 +00001.3 @@ -0,0 +1,40 @@1.4 +/**1.5 + * $Id: glutil.h 602 2008-01-15 20:50:23Z nkeynes $1.6 + *1.7 + * GL-based support functions1.8 + *1.9 + * Copyright (c) 2005 Nathan Keynes.1.10 + *1.11 + * This program is free software; you can redistribute it and/or modify1.12 + * it under the terms of the GNU General Public License as published by1.13 + * the Free Software Foundation; either version 2 of the License, or1.14 + * (at your option) any later version.1.15 + *1.16 + * This program is distributed in the hope that it will be useful,1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.19 + * GNU General Public License for more details.1.20 + */1.21 +1.22 +#ifndef lxdream_glutil_H1.23 +#define lxdream_glutil_H1.24 +1.25 +#include "display.h"1.26 +1.27 +/**1.28 + * Test if a specific extension is supported. From opengl.org1.29 + * @param extension extension name to check for1.30 + * @return TRUE if supported, otherwise FALSE.1.31 + */1.32 +gboolean isGLExtensionSupported( const char *extension );1.33 +1.34 +1.35 +/****** Shader handling (gl_sl.c) *****/1.36 +gboolean glsl_is_supported(void);1.37 +gboolean glsl_load_shaders( const char *vert_shader, const char *frag_shader );1.38 +void glsl_unload_shaders(void);1.39 +1.40 +extern const char *glsl_vertex_shader_src;1.41 +extern const char *glsl_fragment_shader_src;1.42 +1.43 +#endif /* !lxdream_glutil_H */
.