mirror of
https://github.com/love2d/love-android.git
synced 2026-08-16 08:11:44 +02:00
1682 lines
63 KiB
Plaintext
1682 lines
63 KiB
Plaintext
This is DevIL_manual.info, produced by makeinfo version 4.11 from
|
||
DevIL_manual.texi.
|
||
|
||
This is `DevIL 1.7.8' manual. Last update is from 8 March 2009.
|
||
|
||
Copyright (C) 2008,2009 Denton Woods, Matěj Týč
|
||
|
||
Permission is granted to copy, distribute and/or modify this
|
||
document under the terms of the GNU Free Documentation License, Version
|
||
1.3 or any later version published by the Free Software Foundation;
|
||
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
|
||
Texts. A copy of the license is included in the section entitled "GNU
|
||
Free Documentation License".
|
||
|
||
|
||
File: DevIL_manual.info, Node: Top, Next: Introduction, Up: (dir)
|
||
|
||
IL manual
|
||
*********
|
||
|
||
This is a manual describing IL part of `DevIL' - handling images.
|
||
|
||
* Menu:
|
||
|
||
* Introduction:: General intro
|
||
* Basic usage:: How to write your first code
|
||
* Image management:: How to manage images :-)
|
||
* Error handling:: If you encounter an error...
|
||
* Image manipulation:: How to manipulate with images using ILU
|
||
* Common #defines:: #defines you are likely to come across when using DevIL
|
||
* Sample program:: If you want to get going quickly
|
||
* Functions index:: Index of IL and ILU functions
|
||
|
||
|
||
File: DevIL_manual.info, Node: Introduction, Next: Basic usage, Prev: Top, Up: Top
|
||
|
||
1 Introduction
|
||
**************
|
||
|
||
1.1 General introduction
|
||
========================
|
||
|
||
Developer's Image Library was previously called OpenIL, but due to
|
||
trademark issues, `OpenIL' is now known as `DevIL'.
|
||
|
||
`DevIL' is an Open Source programming library for programmers to
|
||
incorporate into their own programs. `DevIL' loads and saves a large
|
||
variety of images for use in a software developer's program. This
|
||
library is capable of manipulating images in various ways and passing
|
||
image information to display APIs, such as OpenGL and Direct3D.
|
||
|
||
The purpose of this manual is to guide users in coding with the
|
||
Developer's Image Library. This manual is for users proficient in C
|
||
and with competent knowledge of the integrated development environment
|
||
(IDE) or compiler they are using.
|
||
|
||
1.2 Library Reference
|
||
=====================
|
||
|
||
Several times throughout this document, the three different
|
||
sub-libraries of `DevIL' are referenced as IL, ILU and ILUT. IL refers
|
||
to the base library for loading, saving and converting images. ILU
|
||
refers to the middle level library for image manipulation. ILUT refers
|
||
to the high level library for displaying images. Functions in IL, ILU
|
||
and ILUT are prefixed by ‘il', ‘ilu' and ‘ilut', respectively.
|
||
|
||
2 Library setup
|
||
***************
|
||
|
||
2.1 Microsoft Visual C++ setup
|
||
==============================
|
||
|
||
`DevIL' setup for Windows is straightforward. Unzip `DevIL' in an
|
||
empty directory. If using WinZip, check the "Use folder names" box
|
||
before unzipping. Use the -d command line option if using pkunzip.
|
||
Then double-click on the ImageLib.sln file in the install directory to
|
||
load the `DevIL' workspace in Microsoft Visual C++ (MSVC++).
|
||
|
||
2.1.1 Directories
|
||
-----------------
|
||
|
||
You will need to change some directory settings in MSVC++ to get
|
||
`DevIL' working.
|
||
|
||
|
||
|
||
1. Navigate to the Tools menu and select Options.
|
||
|
||
2. Click on the Directories tab.
|
||
|
||
3. Under Show directories for, select "Include files".
|
||
|
||
4. Click the New button (to the left of the red 'X')
|
||
|
||
5. Type the directory `DevIL' is installed in, plus `\Include'.
|
||
For example, if you installed `DevIL' to E:\ImageLib, enter
|
||
`E:\ImageLib\Include'. |