Previous : Utilisation Up : Index Next : Data structures used by the functions

Description of the functions

The functions provided by the library can be splitted in two categories : low level functions (powerful, but not easy to use) and high level functions (easier to use, but slightly less powerful).
For usual use, high level functions should be enough, but in some cases, you'll need to use low level functions (if you want to make a complex game, or if you program in assembly).
Nevertheless, using low level functions may not speed up your program. High level functions are written in assembly, so they are usually faster than C code using low level functions.
High level functions allow you to do everything which is possible with low level functions, except use of shift arrays.

If you program in assembly, you need to know how the parameters are passed to the functions. They are passed by registers, read the header file to know precisely which register corresponds to which parameter.

You should read the examples provided with the library to understand how to use the functions.
The example 1 uses high level functions, it shows how to draw more than one plane to give depth illusion.
The example 2 is obsolete, it uses low level functions to show how to make a map with animated tiles (for a RPG for example), but without using functions for animated maps (they weren't written when I wrote this example).
The example 3 is the same than the example 2, but it uses the functions for animated planes.
The example 4 uses low level functions and shifts arrays.
The example 5 uses high level functions to draw 3 planes, using the MASK mode.
The example 6 uses a DrawTiles function to draw a plane.



Previous : Utilisation Up : Index Next : Data structures used by the functions