DevIL: /home/dwoods/DevIL/src-ILUT/include/ilut_opengl.h Source File

- Main Page
- Data Structures
- Files

# /home/dwoods/DevIL/src-ILUT/include/ilut_opengl.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Utility Toolkit Sources
    00004 // Copyright (C) 2000-2009 by Denton Woods
    00005 // Last modified: 01/09/2009
    00006 //
    00007 // Filename: src-ILUT/include/ilut_opengl.h
    00008 //
    00009 // Description: OpenGL functions for images
    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>  // patch #1504388. X86_64 Problems by Hans de Goede
    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