More actions
m (Text replacement - "Category:DS homebrew applications" to "") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|title=Easy GL2D DS | |title=Easy GL2D DS | ||
|image=libgl2dds2.png | |image=libgl2dds2.png | ||
|description=A library designed for rendering 2D code in the NDS | |description=A library designed for rendering 2D code in the NDS 3D core. | ||
|author=Relminator | |author=Relminator | ||
|lastupdated=2010/11/19 | |lastupdated=2010/11/19 | ||
Line 8: | Line 8: | ||
|version=1.0 | |version=1.0 | ||
|license=Mixed | |license=Mixed | ||
|download=https://dlhb.gamebrew.org/ | |download=https://dlhb.gamebrew.org/dshomebrew2/libgl2d_ds.zip | ||
|website=http://rel.phatcode.net/junk.php?id=117 | |website=http://rel.phatcode.net/junk.php?id=117 | ||
|source=http://rel.phatcode.net/junk.php?id=117 | |source=http://rel.phatcode.net/junk.php?id=117 | ||
Line 65: | Line 65: | ||
*Author's website - http://rel.phatcode.net/junk.php?id=117 | *Author's website - http://rel.phatcode.net/junk.php?id=117 | ||
*gbadev forum - [https://web.archive.org/web/20150810201759/http://forum.gbadev.org/viewtopic.php?t=17417 http://forum.gbadev.org/viewtopic.php?t=17417] (archived) | *gbadev forum - [https://web.archive.org/web/20150810201759/http://forum.gbadev.org/viewtopic.php?t=17417 http://forum.gbadev.org/viewtopic.php?t=17417] (archived) | ||
Latest revision as of 13:39, 20 August 2024
Easy GL2D DS | |
---|---|
General | |
Author | Relminator |
Type | Demos |
Version | 1.0 |
License | Mixed |
Last Updated | 2010/11/19 |
Links | |
Download | |
Website | |
Source | |
This is a simple DS 2D rendering layer that works on top of the DS' 3D core. Easy to use and very fast.
Features
- Library size is very small (less than 10 kb).
- Very fast.
- Easy to maintain and refactor existing code.
- Abstracted interface.
- Code is easily portable to other platforms.
- Can combine 2D and 3D seamlessly.
- Almost unlimited palette usage in a single frame.
- Can handle non-power of 2 sprites.
- 3 types of translucency (2 via textures and 1 via polygon format).
- Lots of sprite effects (colors, alpha, rotation, scaling, shearing, etc.).
- Optimum VRAM use.
- Paletted(almost limitless) and high-color mode can be used together.
User guide
Limitations:
- Emulators are slower in emulating the 3d hardware than the OAM.
- glPutPixel, glLine and glBox only works on a real DS and No$GBA and not on deSmuMe.
- 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.
Compatibility
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
Changelog
Update 04/02/2011
- Added gl[Get/Set]ActiveTexture() for Stencil FX (See Sprites example).
- Added uoff and voff to glSpriteOnQuad for more FX.
- Changed Sprite Examples.
Update 02/17/2011
- Code overhaul for libnds 1.5.0 compatibility.
- Added 2 parameters to glSpriteLoad() and glSpriteLoad().
- Fixed the examples to reflect changes.
- Doxygen generated reference.
- Bug fixes(reported by Enay, Mhaun, Alex Sinclair, etc).
Update 11/25/2010
- Documentation and user's guide done.
- Added a dual_screen example.
- Updated the sprites example.
Update 11/23/2010
- Fixed a bug where drawing primitives messed up the sprite colors. (missing currenttexture = 0 call).
External links
- Author's website - http://rel.phatcode.net/junk.php?id=117
- gbadev forum - http://forum.gbadev.org/viewtopic.php?t=17417 (archived)