Search
lxdream.org :: lxdream/src/pvr2/glutil.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.h
changeset 653:3202ff01d48e
next667:0e1ac8da75d9
author nkeynes
date Tue Apr 01 01:04:13 2008 +0000 (16 years ago)
permissions -rw-r--r--
last change Load mipmap textures from largest-to-smallest (instead of the other way
around) - works around bug in the ATI drivers
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/pvr2/glutil.h Tue Apr 01 01:04:13 2008 +0000
1.3 @@ -0,0 +1,40 @@
1.4 +/**
1.5 + * $Id$
1.6 + *
1.7 + * GL-based support functions
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.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 of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#ifndef lxdream_glutil_H
1.23 +#define lxdream_glutil_H
1.24 +
1.25 +#include "display.h"
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
1.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 */
.