Author Topic: Easy GL2D DS  (Read 2973 times)

0 Members and 1 Guest are viewing this topic.

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Easy GL2D DS
« on: November 20, 2010 »
A very small, simple, yet very fast DS 2D rendering lib using the DS' 3D core.





Download:

http://rel.betterwebber.com/junk.php?id=117


Reasons to use Easy GL2D:

1. Library size is very small (9.14 kb)
2. Very fast
3. Easy to maintain and refactor existing code
4. Abstracted interface
5. Code is easily portable to other platforms
6. Can combine 2D and 3D seamlessly
7. Almost unlimited palette usage in a single frame
8. Can handle non-power of 2 sprites
9. 3 types of translucency (2 via textures and 1 via polygon format)
10. Lots of sprite effects (colors, alpha, rotation, scaling, shearing, etc.)
11. Optimum VRAM use
12. Paletted(almost limitless) and high-color mode can be used together.


Limitations:

1. Emulators are slower in emulating the 3d hardware than the OAM.
2. glPutPixel, glLine and glBox only works on a real DS and No$GBA and not on deSmuMe.
3. You still have to learn how to use the sub OAM and sub BG since this lib is main engine
   only. You can use the video capture to render on both screens but that would limit your
   FPS and would use valuable VRAM.

 

Installation:

1 . Copy the distributable/libnds folder to your devkitPro directory.
    or you can copy the /include and /lib folders under the /libnds directory of devkitPro.
    ie.
   *Assuming you installed devkitPro in c:/devkitPro/
   
   c:/devkitPro/libnds/include/gl2d.h   
   c:/devkitPro/libnds/lib/libgl2d.a

2.  Edit this line in your makefile and add gl2d before libnds
    ie.
   LIBS   := -lnds9


   to


   LIBS   := -lgl2d -lnds9

   


4. Add #include <gl2d.h> to your source.

5. Done! You can now use gl2d


Note:

Easy GL2D DS works perfectly on a Real DS.

However, if you are running this on an emulator...
No$GBA - works perfectly.
deSmuMe - use the soft rasterizer instead of OpenGL


* I'm in the process of writing a documentation as well as a user's guide that would
  essentially be a mini tutorial of sorts.
Challenge Trophies Won: