Easy GL2D
Re: Easy GL2D
Yeah. 512KB should be enough for anybody.
To be honest, I don't like the idea of integrating a library designed for a specific purpose, mixing various kinds of DS hardware, into libnds. The current model we have with, say, the WiFi lib, libfat, even libfilesystem, has worked just fine till now. I like the idea of GL2D as a separate, static library just like these ones. Hell, I would even like to see the current 3D API detached from libnds, so we can easily choose our favorite implementation...
Just my 2c .
To be honest, I don't like the idea of integrating a library designed for a specific purpose, mixing various kinds of DS hardware, into libnds. The current model we have with, say, the WiFi lib, libfat, even libfilesystem, has worked just fine till now. I like the idea of GL2D as a separate, static library just like these ones. Hell, I would even like to see the current 3D API detached from libnds, so we can easily choose our favorite implementation...
Just my 2c .
Re: Easy GL2D
my vote is to rename functions to gl2dRelminatorsFunction and integrate it. I would rather help people use this than try to explain BG and OAM and vram mapping to them.
-
- Posts: 84
- Joined: Sun Apr 11, 2010 10:43 am
Re: Easy GL2D
if GL2D gets integrated, I'll prolly just keep glSprite() for speed, and do a glSpriteRotateScale() that can be a generic function for all sprite needs so as not to pollute the global namespace.
What do you guys think?
What do you guys think?
-
- Posts: 30
- Joined: Fri Dec 17, 2010 1:34 pm
- Location: Either side of South Bypass, Madrid, Spain
Re: Easy GL2D
Very interesting discussion: I´m getting lost
Just a small question to the authors:
To put sprites at different depths I asume you just has to say
glTraslate(0,0, whateverZyouwant);
glSprite(...)
Am I right???
Just a small question to the authors:
To put sprites at different depths I asume you just has to say
glTraslate(0,0, whateverZyouwant);
glSprite(...)
Am I right???
--------------------------------
Welcome, my son, to the machine.
Pink Floyd.
Welcome, my son, to the machine.
Pink Floyd.
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Easy GL2D
There's nothing stopping you from using your favourite implementation now. That's the thing about libraries, the linker doesn't link in things you don't ask for. We could probably aim for more granularity in the libraries we have but libnds is still, at it's heart, a thin layer over the hardware.Izhido wrote:Yeah. 512KB should be enough for anybody.
To be honest, I don't like the idea of integrating a library designed for a specific purpose, mixing various kinds of DS hardware, into libnds. The current model we have with, say, the WiFi lib, libfat, even libfilesystem, has worked just fine till now. I like the idea of GL2D as a separate, static library just like these ones. Hell, I would even like to see the current 3D API detached from libnds, so we can easily choose our favorite implementation...
Just my 2c .
One of the biggest problems we have with novice coders is that horrible third party libraries provide things that we currently don't have an implementation for, things like a reasonable API for making 2D games with the 3D hardware. For people just starting out choice is actually a bad thing, usually they don't have the experience to help them choose the right approach.
-
- Posts: 84
- Joined: Sun Apr 11, 2010 10:43 am
Re: Easy GL2D
No. Depth management is handled automatically by the library. Just call glSprite() and you're good to go.eradsoft wrote:Very interesting discussion: I´m getting lost
Just a small question to the authors:
To put sprites at different depths I asume you just has to say
glTraslate(0,0, whateverZyouwant);
glSprite(...)
Am I right???
Re: Easy GL2D
Sorry about the delay. Urgent business came in over the weekend so I've been tied up on other things pretty much all week
I will try glDeleteTexture later and see what happens. Thanks for that Relminator. Looks like I still have a lot to learn.
Thanks for your interest Relminator I was only originally dabbling about on the DS for experimental purposes, but since I have been progressing well I may as well finish what I started. Once my game is done I may consider releasing it for free, need to check with my publisher first to see if that is actually ok or not since it is a conversion of one of my old PC games.
A few weeks ago I went to Osaka with my girlfriend and we visited the famous Osaka aquarium. Inside the building it had Nintendo DS wifi points set up all over the museum and simply standing by various numbered areas allowed you to download audio files to listen too. (As if you were using headphones) There were also pictures/texts maps etc of various things.
Very impressive stuff! I would love to know how they did that.
I will try glDeleteTexture later and see what happens. Thanks for that Relminator. Looks like I still have a lot to learn.
Thanks for your interest Relminator I was only originally dabbling about on the DS for experimental purposes, but since I have been progressing well I may as well finish what I started. Once my game is done I may consider releasing it for free, need to check with my publisher first to see if that is actually ok or not since it is a conversion of one of my old PC games.
A few weeks ago I went to Osaka with my girlfriend and we visited the famous Osaka aquarium. Inside the building it had Nintendo DS wifi points set up all over the museum and simply standing by various numbered areas allowed you to download audio files to listen too. (As if you were using headphones) There were also pictures/texts maps etc of various things.
Very impressive stuff! I would love to know how they did that.
Re: Easy GL2D
Nice library.
I've added glLoadOneTile() to load any tile, without the limitation on size that glLoadTileSet() has. Patch attached.
Also I was wondering why glLoadSpriteSet() and glLoadTileSet() are return the textureID. Is that of any use ?
I've added glLoadOneTile() to load any tile, without the limitation on size that glLoadTileSet() has. Patch attached.
Also I was wondering why glLoadSpriteSet() and glLoadTileSet() are return the textureID. Is that of any use ?
- Attachments
-
- glLoadOneTile.diff.zip
- (930 Bytes) Downloaded 1545 times
-
- Posts: 84
- Joined: Sun Apr 11, 2010 10:43 am
Re: Easy GL2D
glLoadTileset() can load single tiles. Just use the same tilesize and bmpsize in your parameters and it would load a single tile.
You can use the returned textureID to delete your textures at runtime. ie. Dynamic textures.
You can use the returned textureID to delete your textures at runtime. ie. Dynamic textures.
Re: Easy GL2D
Indeed (and it's obvious my new function doesn't add anything). I think I fixed another issue in my code at the same time I wrote that.relminator wrote:glLoadTileset() can load single tiles. Just use the same tilesize and bmpsize in your parameters and it would load a single tile.
Thanks.relminator wrote:You can use the returned textureID to delete your textures at runtime. ie. Dynamic textures.
Who is online
Users browsing this forum: No registered users and 0 guests