core/vgui/vgui_texture_hacks.h
Go to the documentation of this file.
00001 // This is core/vgui/vgui_texture_hacks.h
00002 #ifndef vgui_texture_hacks_h_
00003 #define vgui_texture_hacks_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author fsm
00010 // \brief  Ask fsm about these hacks.
00011 
00012 #include <vgui/vgui_gl.h>
00013 
00014 // ask fsm about these hacks.
00015 #if defined(__sun__) && defined(__gl_h_)
00016 # define fsm_fake_gl_texture_calls
00017 GLboolean urgh_glAreTexturesResident(GLsizei, GLuint const *, GLboolean *);
00018 void      urgh_glBindTexture(GLenum, GLuint);
00019 void      urgh_glDeleteTextures(GLsizei, GLuint const *);
00020 void      urgh_glGenTextures(GLsizei, GLuint *);
00021 GLboolean urgh_glIsTexture(GLuint );
00022 void      urgh_glPrioritizeTextures(GLsizei, GLuint const *, GLclampf const *);
00023 
00024 # define glAreTexturesResident urgh_glAreTexturesResident
00025 # define glBindTexture         urgh_glBindTexture
00026 # define glDeleteTextures      urgh_glDeleteTextures
00027 # define glGenTextures         urgh_glGenTextures
00028 # define glIsTexture           urgh_glIsTexture
00029 # define glPrioritizeTextures  urgh_glPrioritizeTextures
00030 #endif
00031 
00032 #endif // vgui_texture_hacks_h_