Add DevIL 1.7.8.

This commit is contained in:
rude
2013-09-26 00:20:08 +02:00
parent 6e493fb605
commit c065120c58
487 changed files with 219483 additions and 0 deletions
@@ -0,0 +1,27 @@
//-----------------------------------------------------------------------------
//
// ImageLib Utility Toolkit Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 04/20/2002 <--Y2K Compliant! =]
//
// Filename: src-ILUT/include/ilut_alleg.h (Don't want to conflict with allegro.h)
//
// Description:
//
//-----------------------------------------------------------------------------
// xxxxAllegro.h has to be included before il/il.h!xxx
//#ifdef ALLEGRO_VERSION // Check to make sure Allegro is present
#ifdef ILUT_USE_ALLEGRO
#ifndef ILUT_ALLEG_H
#define ILUT_ALLEG_H
#include <allegro.h>
#endif//ILUT_ALLEG_H
#endif//ILUT_USE_ALLEGRO
//#endif//ALLEGRO_VERSION
@@ -0,0 +1,99 @@
//-----------------------------------------------------------------------------
//
// ImageLib Utility Toolkit Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 02/07/2002 <--Y2K Compliant! =]
//
// Filename: src-ILUT/include/ilut_internal.h
//
// Description: Internal stuff for ILUT
//
//-----------------------------------------------------------------------------
#ifndef INTERNAL_H
#define INTERNAL_H
#define _IL_BUILD_LIBRARY
#define _ILU_BUILD_LIBRARY
#define _ILUT_BUILD_LIBRARY
//#define WIN32_LEAN_AND_MEAN
/*#if defined(_WIN32) && !defined(HAVE_CONFIG_H)
#define HAVE_CONFIG_H
#endif*/
#ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
#include <config.h>
#else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case
#include <IL/config.h>
#endif
#include <string.h>
#ifdef _WIN32
#ifdef _MSC_VER
#if _MSC_VER > 1000
#pragma warning(disable: 4996) // "The POSIX name for this item is deprecated." AND "This function or variable may be unsafe."
#endif // _MSC_VER > 1000
#endif
#endif
/*
#ifdef _MSC_VER
#if _MSC_VER > 1000
pragma once
pragma intrinsic(memcpy)
pragma intrinsic(memset)
#endif // _MSC_VER > 1000
#endif
*/
#include <IL/ilut.h>
#include <IL/devil_internal_exports.h>
#include <stdlib.h>
extern ILimage *ilutCurImage;
void ilutDefaultStates(void);
#ifdef _UNICODE
#define IL_TEXT(s) L##s
#else
#define IL_TEXT(s) (s)
#endif
// ImageLib Utility Toolkit's OpenGL Functions
#ifdef ILUT_USE_OPENGL
ILboolean ilutGLInit();
#endif
// ImageLib Utility Toolkit's Win32 Functions
#ifdef ILUT_USE_WIN32
ILboolean ilutWin32Init();
#endif
// ImageLib Utility Toolkit's Win32 Functions
#ifdef ILUT_USE_DIRECTX8
ILboolean ilutD3D8Init();
#endif
#ifdef ILUT_USE_DIRECTX9
ILboolean ilutD3D9Init();
#endif
#ifdef ILUT_USE_DIRECTX10
ILboolean ilutD3D10Init();
#endif
#define CUBEMAP_SIDES 6
#ifndef SAFE_RELEASE
#define SAFE_RELEASE(p) {if((p)!=NULL){(p)->lpVtbl->Release(p);(p)=NULL;}}
#endif
#endif//INTERNAL_H
@@ -0,0 +1,47 @@
//-----------------------------------------------------------------------------
//
// ImageLib Utility Toolkit Sources
// Copyright (C) 2000-2009 by Denton Woods
// Last modified: 01/09/2009
//
// Filename: src-ILUT/include/ilut_opengl.h
//
// Description: OpenGL functions for images
//
//-----------------------------------------------------------------------------
#ifndef ILUT_OPENGL_H
#define ILUT_OPENGL_H
#include "ilut_internal.h"
#ifndef min
#define min(a, b) (((a) < (b)) ? (a) : (b))
#endif
#ifdef ILUT_USE_OPENGL
ILenum ilutGLFormat(ILenum, ILubyte);
ILimage* MakeGLCompliant2D(ILimage *Src);
ILimage* MakeGLCompliant3D(ILimage *Src);
ILboolean IsExtensionSupported(const char *extension);
#ifdef _WIN32
#include <windows.h>
#include <GL/gl.h>
#elif linux
#include <GL/gl.h>
#include <GL/glx.h> // patch #1504388. X86_64 Problems by Hans de Goede
#elif defined __APPLE__
#include <mach-o/dyld.h>
void* aglGetProcAddress (const GLubyte *name);
#endif
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);
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);
typedef void (ILAPIENTRY * ILGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
typedef void (ILAPIENTRY * ILGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
#endif //ILUT_USE_OPENGL
#endif //ILUT_OPENGL_H
@@ -0,0 +1,57 @@
//-----------------------------------------------------------------------------
//
// ImageLib Utility Toolkit Sources
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 05/28/2001 <--Y2K Compliant! =]
//
// Filename: src-ILUT/include/ilut_states.h
//
// Description: State machine
//
//-----------------------------------------------------------------------------
#ifndef STATES_H
#define STATES_H
#include "ilut_internal.h"
ILboolean ilutAble(ILenum Mode, ILboolean Flag);
#define ILUT_ATTRIB_STACK_MAX 32
ILuint ilutCurrentPos = 0; // Which position on the stack
//
// Various states
//
typedef struct ILUT_STATES
{
// ILUT states
ILboolean ilutUsePalettes;
ILboolean ilutOglConv;
ILboolean ilutForceIntegerFormat;
ILenum ilutDXTCFormat;
// GL states
ILboolean ilutUseS3TC;
ILboolean ilutGenS3TC;
ILboolean ilutAutodetectTextureTarget;
ILint MaxTexW;
ILint MaxTexH;
ILint MaxTexD;
// D3D states
ILuint D3DMipLevels;
ILenum D3DPool;
ILint D3DAlphaKeyColor; // 0x00rrggbb format , -1 for none
} ILUT_STATES;
ILUT_STATES ilutStates[ILUT_ATTRIB_STACK_MAX];
#endif//STATES_H