• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bin/H08-Mar-2009-1,070937

build-aux/H08-Mar-2009-21,85718,289

data/H03-May-2022-471401

docs/H03-May-2022-2,5392,202

examples/H08-Mar-2009-4,4623,163

include/IL/H08-Mar-2009-2,7591,948

lib/H03-May-2022-1,6891,483

m4/H03-May-2022-9,7218,752

projects/H08-Mar-2009-30,03925,510

src-IL/H08-Mar-2009-48,90935,821

src-ILU/H08-Mar-2009-6,9495,016

src-ILUT/H08-Mar-2009-4,7063,298

test/H08-Mar-2009-1,3011,061

AUTHORSH A D08-Mar-2009196 53

COPYINGH A D08-Mar-200925.8 KiB507418

CREDITSH A D08-Mar-20099.1 KiB265164

ChangeLogH A D09-Mar-200931 KiB605536

INSTALLH A D08-Mar-20099.3 KiB238179

Makefile.amH A D03-May-2022557 144

Makefile.inH A D08-Mar-200921.8 KiB702614

NEWSH A D09-Mar-200955.2 KiB1,182997

READMEH A D08-Mar-20094.9 KiB177114

README.macosxH A D08-Mar-20091.3 KiB4130

README.unixH A D08-Mar-20092 KiB6141

README.winH A D08-Mar-20091.4 KiB4528

TODOH A D08-Mar-200913.3 KiB250232

aclocal.m4H A D08-Mar-200933.2 KiB919826

configureH A D08-Mar-2009855.2 KiB28,88123,134

configure.acH A D03-May-202216.2 KiB470416

configure.batH A D08-Mar-2009266 109

ltmain.shH A D08-Mar-2009195.3 KiB6,9655,506

missingH A D08-Mar-200910 KiB337263

README

1Developer's Image Library version 1.7.8 Readme, Notes and Quick Use
2-------------------------------------------------------------------
3
4<DZA[afk]> DevIL song: "la la la, a cross-platform image library utilizing a
5           simple syntax to load, save, convert, manipulate, filter and display
6           a variety of images with ease, la la la"
7
8
9What is it?
10-----------
11
12DevIL is an Open Source image library whose distribution is done under the
13terms of the GNU LGPL license. See the COPYING file for more details.
14DevIL offers you a simple way to implement loading, manipulating, filtering,
15converting, displaying, saving from/to several different image formats in your
16own project.
17
18
19Where can I find it?
20--------------------
21
22DevIL can be found at http://openil.sourceforge.net
23
24
25How do I build and install the 3 libraries ?
26-----------------------------------------
27
28*nix    users should read README.unix
29VisualC users should read README.win
30Cygwin  users should read README.cygwin
31MacOSX  users should read README.macosx
32
33PS: *nix stands for GNU/Linux, *BSD, SunOS/Solaris and perhaps some more.
34
35
36More Extensive Documentation
37----------------------------
38
39This file is only a quick guide to point you to more detailed information on
40how to use DevIL.  More extensive documentation can currently be found on the
41DevIL site at http://openil.sf.net and in the /Docs directory in a normal
42install.
43
44
45Why the hell another image library?
46-----------------------------------
47
48I have never seen an image library that can do everything DevIL does.  Sure,
49various different libraries can do part of what DevIL can do as well or even
50better, but I wanted a simple to use library that encompassed all of these
51features.  I also wanted an extremely portable image library that could be used
52from a variety of languages and utilized the OpenGL syntax.
53
54
55Basic Readme
56------------
57
58Most anything stated in this document applies to DevIL as well as DevILU and
59DevILUT, unless otherwise stated. (This file is best viewed with word wrap on.)
60
61
62Errors:
63-------
64
65All errors generated inside DevIL, along with illegal parameters passed to
66DevIL functions are caught and passed to ilSetError(), an internal library
67function.  The calling program can call ilGetError() to get the value of the
68error generated.  Error types are defined in il.h, using the 0x501 - 0x5FF
69range.  ilGetError() will return 0 (IL_NO_ERROR) if no error has occurred.
70
71
72Basic Usage:
73------
74
75This demonstrates loading an image through DevIL for OpenGL. Don't forget to
76call ilInit before you before you do anything:
77
78#include <IL/il.h>
79#include <IL/ilu.h>
80#include <IL/ilut.h>
81
82...
83
84ILuint devilError;
85
86
87ilInit();
88
89devilError = ilGetError();
90
91if (devilError != IL_NO_ERROR) {
92  printf ("Devil Error (ilInit: %s\n", iluGetErrorString (devilError));
93  exit (2);
94}
95
96....
97
98ILuint devilID;
99
100
101ilGenImages(1, &devilID);
102ilBindImage(devilID);
103ilLoadImage("default1.tga");  // Loads into the current bound image
104devilError = ilGetError();
105
106if (devilError != IL_NO_ERROR) {
107  printf ("Devil Error (ilLoadImage: %s\n", iluGetErrorString (devilError));
108  exit (2);
109}
110
111....
112
113ilutRenderer(IL_OPENGL);  // Switch the renderer
114
115....
116
117GLuint openglID, openglError;
118
119
120openglID   = ilutGLBindTexImage(); // This generates the texture for you
121devilError = ilGetError();
122
123if (devilError != IL_NO_ERROR) {
124  printf ("Error: %s\n", iluGetErrorString (devilError));
125  exit (2);
126}
127
128if (openglError != GL_NO_ERROR) {
129  printf ("Opengl Error (ilutGLBindTexImage): %s\n", gluGetErrorString (openglError));
130  exit (2);
131}
132
133
134
135// Make sure to close the image when you are done with it (though DevIL
136// automatically deletes them when the program exits):
137
138glDeleteTextures(1, &openglID);
139ilDeleteImages  (1, &devilID);
140
141
142More Examples:
143---------
144
145The TestIL project is included to test features of DevIL.
146
147DevIL includes a project called GLTest.  This is a simple test of DevIL's
148capabilities.  All it does it load any image and displays it in a window
149created by FreeGlut, which is available on http://freeglut.sourceforge.net. It
150is also included to let the user have an idea of what the library can really
151be used for.
152
153Several other test projects are included to test support with various display
154APIs.  The WindowsTest project is a basic image program that only runs in
155Windows right now but showcases several of DevIL's features through various
156menus.
157
158If you want more in-depth tutorials, you can find them on
159http://openil.sf.net, or they may be in your installation under the /examples
160directory.  Documents are also available in the /docs directory.
161
162
163Additional Reading
164------------------
165
166All image formats used in DevIL have corresponding documents on
167http://www.wotsit.org, under the Graphics Files section.  These documents
168proved invaluable for the creation of this library when there was no library
169already available for that image format.
170
171
172Legalese
173--------
174
175All contents of this file are intellectual property of Denton Woods,
176copyright 2001-2008.
177

README.macosx

1How do I compile the library ?
2----------------------------------
3
4Download and install. In the Unix way it will produce a shared library.
5Using the project file for the Apple Developer Tools you can get a framework.
6However they are without the external libraries which are needed to be installed.
7However the packages are somehow out of date. but anyone can setup a new project easily.
8DevIL was packaging them along with the distribution but that's was to hard to mantain
9for each update of these libraries.
10
11
12Libraries needed to compile DevIL* :
13-----------------------------------
14
15Needs the same libraries as the *nix version.
16
17Installation:
18-------------
19All the libraries can be easiliy installed from source, manually or using
20some tools like the fink project or the darwinports project.
21
22to use fink you must set the environment variables. for some libraries you must have
23the PATH correctly set up to execute programs installed with the tools.
24
25tcsh:
26setenv LDFLAGS -L/sw/lib
27setenv CFLAGS -I/sw/include -L/sw/lib
28
29sh:
30export LDFLAGS=-L/sw/lib
31export CFLAGS=-I/sw/includee -L/sw/lib
32
33same thing with darwinports
34tcsh:
35setenv LDFLAGS -L/opt/local/lib
36setenv CFLAGS -I/opt/local/include -L/opt/local/lib
37
38sh:
39export LDFLAGS=-L/opt/local/lib
40export CFLAGS=-I/opt/local/include -L/opt/local/lib
41

README.unix

1How do I compile the 3 libraries?
2--------------------------------
3
4You will need autoconf, automake and libtool.
5
6Just type:
7autoreconf -i
8./configure <your options here>
9make
10sudo make install
11
12If you want to use the ILU and ILUT parts of DevIL, you will want to run
13./configure --enable-ILU --enable-ILUT
14
15If you want configure to install in /usr instead of /usr/local, append
16--prefix=/usr to the ./configure line.
17
18It should find automatically what can (or cannot) be built on your system.  Libtool, autoconf and
19automake will need to be installed.  You may need to copy files from your libtool
20into the libtools directory and overwrite ltmain.sh if it will not compile with the
21included files.
22
23NB : ./configure --help gives you all compiling options available for the three
24      libs. This includes enabling/disabling picture formats, ilut apis.
25
26Enable/Disable:
27All features are basically enabled, and a test will be performed
28to verify if is possible to compile them in. If they are explicitly enabled
29or disabled no test will occour.
30
31Compiling under Cygwin or MingW in Windows:
32------------------------------------------
33
34Run the same commands as above.  You will need to have the following packages installed: gcc-core, gcc-mingw-core, gcc-g++, autoconf, automake, libtool.
35
36Config.h and JasPer:
37-------------------
38
39If compiling with JasPer, you may need to modify config.h so that it does not
40redefine things that are defined in JasPer's jas_config.h.  PACKAGE, PACKAGE_NAME,
41etc. are generated for both projects, since they use a similar configuration
42program.  If there are conflicts, just comment out the ones in DevIL's config.h.
43
44
45Libraries needed to compile DevIL* :
46-----------------------------------
47
48They are all autodetected by the ./configure script. But if you want to include
49one of those formats, you have just to install the corresponding lib :
50
51(libs listed in libraries.txt)
52
53or in your distro/port ftp/site/whatever_you_want :-)
54
55
56Installation:
57-------------
58
59If #make succeeded, just type #make install, followed by #ldconfig
60(as su, of course)
61

README.win

1Where do I find the project files ?
2-----------------------------------------
3
4MSVC++ projects are in DevIL\projects\vc8 and DevIL\projects\vc9.
5If compiling with Cygwin or MinGW, use the instructions in README.unix.
6
7
8The IL_NO_XXX #define's:
9------------------------
10
11A user can recompile this library without complete image support in it.  For
12example, if your project does not use .jpg files, you can uncomment
13#define IL_NO_JPG at the top of il/il.h, recompile the library, and no .jpg
14support will be added, meaning quicker compiles and a smaller library.
15
16
17The ILUT_USE_XXX #define's:
18---------------------------
19
20To disable support for a specific API, edit IL/ilut.h and comment the
21corresponding #define.  Per example, to disable OpenGL functions support,
22 add // in front of the line that reads:
23
24#define ILUT_USE_OPENGL
25
26
27Libraries needed to compile DevIL* :
28-----------------------------------
29
30Libraries.txt (included with the DevIL distribution) lists all libraries needed
31to properly compile DevIL.
32
33Precompiled versions and sources of all libraries needed to compile DevIL are
34available at http://openil.sourceforge.net/libs/LibCompiled.zip and
35http://openil.sourceforge.net/libs/LibSrc.zip , respectively.
36
37
38Installation:
39-------------
40
41Just unzip and compile other libs included if needed.
42
43Please also refer to MSVC++.txt for further instructions if you are using
44Microsoft Visual C++.
45