X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fopengl.h;h=29bfdf9db4acab00b7681ad22730476e855ef0d3;hp=6d5387ef7bcacca339d6411ceaf5275453ce425b;hb=cb2703917746784c4ea3408a049ff4297dfc268e;hpb=dd39621d642e417f1e343cbf813205a658272639 diff --git a/src/opengl.h b/src/opengl.h index 6d5387e..29bfdf9 100644 --- a/src/opengl.h +++ b/src/opengl.h @@ -30,6 +30,38 @@ #endif /* IPHONE */ +#ifndef GL_RGB16F +#define GL_RGB16F 0x881b +#endif +#ifndef GL_RGBA16F +#define GL_RGBA16F 0x881a +#endif +#ifndef GL_RGB32F +#define GL_RGB32F 0x8815 +#endif +#ifndef GL_RGBA32F +#define GL_RGBA32F 0x8814 +#endif +#ifndef GL_LUMINANCE16F +#define GL_LUMINANCE16F 0x881e +#endif +#ifndef GL_LUMINANCE32F +#define GL_LUMINANCE32F 0x8818 +#endif +#ifndef GL_DEPTH24_STENCIL8 +#define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES +#endif + +struct GLCaps { + int shaders; + int fsaa; + int fbo; + int shadow; + int max_aniso; +}; +extern struct GLCaps glcaps; + + #ifdef __cplusplus extern "C" { #endif