summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Szubowicz <shybovycha@gmail.com>2017-11-19 12:45:42 +1100
committerGitHub <noreply@github.com>2017-11-19 12:45:42 +1100
commit56cf3eb73683abd3cb5f27f0d8ee275124847975 (patch)
tree27dcb81fb0757de02351946c2ca01d288a90f15a
parentcba359b0c5861557ea15303ffb03b124ca1fd514 (diff)
downloaddevil-56cf3eb73683abd3cb5f27f0d8ee275124847975.tar.gz
Added some fancy markup to the README
-rw-r--r--DevIL/README.md28
1 files changed, 15 insertions, 13 deletions
diff --git a/DevIL/README.md b/DevIL/README.md
index d04b1e22..6be846a3 100644
--- a/DevIL/README.md
+++ b/DevIL/README.md
@@ -1,10 +1,11 @@
Developer's Image Library version 1.8.0 Readme, Notes and Quick Use
-------------------------------------------------------------------
-<DZA[afk]> DevIL song: "la la la, a cross-platform image library utilizing a
- simple syntax to load, save, convert, manipulate, filter and display
- a variety of images with ease, la la la"
+<DZA[afk]> DevIL song:
+> la la la, a cross-platform image library utilizing a
+> simple syntax to load, save, convert, manipulate, filter and display
+> a variety of images with ease, la la la"
What is it?
-----------
@@ -60,10 +61,10 @@ Errors:
-------
All errors generated inside DevIL, along with illegal parameters passed to
-DevIL functions are caught and passed to ilSetError(), an internal library
-function. The calling program can call ilGetError() to get the value of the
-error generated. Error types are defined in il.h, using the 0x501 - 0x5FF
-range. ilGetError() will return 0 (IL_NO_ERROR) if no error has occurred.
+DevIL functions are caught and passed to `ilSetError()`, an internal library
+function. The calling program can call `ilGetError()` to get the value of the
+error generated. Error types are defined in il.h, using the `0x501` - `0x5FF`
+range. `ilGetError()` will return `0` (`IL_NO_ERROR`) if no error has occurred.
Basic Usage:
@@ -72,11 +73,12 @@ Basic Usage:
This demonstrates loading an image through DevIL for OpenGL. Don't forget to
call ilInit before you before you do anything:
+```
#include <IL/il.h>
#include <IL/ilu.h>
#include <IL/ilut.h>
-...
+// ...
ILuint devilError;
@@ -90,7 +92,7 @@ if (devilError != IL_NO_ERROR) {
exit (2);
}
-....
+// ...
ILuint devilID;
@@ -105,11 +107,11 @@ if (devilError != IL_NO_ERROR) {
exit (2);
}
-....
+// ...
ilutRenderer(IL_OPENGL); // Switch the renderer
-....
+// ...
GLuint openglID, openglError;
@@ -134,7 +136,7 @@ if (openglError != GL_NO_ERROR) {
glDeleteTextures(1, &openglID);
ilDeleteImages (1, &devilID);
-
+```
More Examples:
---------
@@ -143,7 +145,7 @@ The TestIL project is included to test features of DevIL.
DevIL includes a project called GLTest. This is a simple test of DevIL's
capabilities. All it does it load any image and displays it in a window
-created by FreeGlut, which is available on http://freeglut.sourceforge.net. It
+created by FreeGlut, which is available on [SourceForge](http://freeglut.sourceforge.net). It
is also included to let the user have an idea of what the library can really
be used for.