PDA

View Full Version : uLibrary v1.1



wraggster
December 26th, 2007, 19:18
Brunni (http://brunni.dev-fr.org/index.php?page=ndssoft_ulib) has given a nice release for developers:


無ibrary is a new library for Nintendo DS. Basically, it is meant to use the 3D GPU to create nice 2D games very easily, using a different approach than existing libraries (quite similar to OSLib).

The 3D GPU provides additional effects over the 2D GPU, like full transparency with alpha channel (objects can blend amongst them), a larger number of sprites (up to 1536 instead of 128), no zoom or rotation limit (2x with the 2D GPU), a larger limit for the sprite size (2048x2048 instead of 64x64). It is also possible to draw primitives like lines, rectangles, etc. allowing nice effects like in Yoshi's island for example :)

無ibrary also provides a low level layer and is open to the hardware. You can also mix 2D and 3D in a single project.

The problem of using the 3D GPU is clear: you can only use one screen at a time, or 2 screens but at 30 fps. However, 無ibrary is fully compatible with PALib and you can use it to handle the second screen at 60 fps. It's a good solution if you do not plan to use the second screen intensively: displaying a BG with some sprites and get the stylus state could be enough, and you can concentrate on the main screen which is driven by 無ibrary.

Here is a small list of functionalities offered by 無ibrary:

Supported image formats: PNG, GIF, JPG
Special image effects: stretching, tinting (4 corners), mirroring, rotation (with a defined center), selection of an image frame to display (just like on spritesheets).
18-bit render quality instead of 15-bit: provides 8 times more colors!
Virtual file system: it is possible to load files independantly from the actual support (RAM, libFat, GBFS are supported by default, but you can define your own). Allows to create more easily software that are compatible with all existing linkers
Untextured geometry (rectangles, gradients, lines, etc.)
Basic message box system
VideoGL wrapper for texture and palette loading in VRAM: it is now possible to load and unload things dynamically. Furthermore, it is more flexible (you can choose which banks you want to use for what, etc.)
Keypad and touchscreen handler namely with support of stylus speed and double click and support of autorepeated keys (menus for example).
Includes 2 splash screens
Low level wrapper to draw primitives
Text system using the same font format as OSLib

New this time

An update to 無ibrary, initially only meant to fix the problems with the latest libnds release, but which finally features some nice improvements.