00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 #ifndef ILUT_OPENGL_H
00014 #define ILUT_OPENGL_H
00015 
00016 #include "ilut_internal.h"
00017 
00018 #ifndef min
00019 #define min(a, b)       (((a) < (b)) ? (a) : (b))
00020 #endif
00021 
00022 #ifdef ILUT_USE_OPENGL
00023 ILenum    ilutGLFormat(ILenum, ILubyte);
00024 ILimage*  MakeGLCompliant2D(ILimage *Src);
00025 ILimage*  MakeGLCompliant3D(ILimage *Src);
00026 ILboolean IsExtensionSupported(const char *extension);
00027 
00028 
00029 #ifdef _WIN32
00030         #include <windows.h>
00031         #include <GL/gl.h>
00032 #elif linux
00033         #include <GL/gl.h>
00034         #include <GL/glx.h>  
00035 #elif defined __APPLE__
00036         #include <mach-o/dyld.h>
00037         void* aglGetProcAddress (const GLubyte *name);
00038 #endif
00039 
00040 typedef void (ILAPIENTRY * ILGLTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *data);
00041 typedef void (ILAPIENTRY * ILGLTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *data);
00042 typedef void (ILAPIENTRY * ILGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
00043 typedef void (ILAPIENTRY * ILGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
00044 
00045 
00046 #endif //ILUT_USE_OPENGL
00047 #endif //ILUT_OPENGL_H