gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > GBA Game Library?

#14280 - dist0rted - Sat Jan 03, 2004 9:14 pm

Just curious as to whether there are any GBA game libraries such as DirectX would be for the computer.
_________________
All knowledge is good; only the way it is put to use is good or evil.

#14281 - sajiimori - Sat Jan 03, 2004 9:25 pm

For "the computer" as in Wintel PCs? DirectX is for PC, so I'm not sure what you're asking.

Edit: Ohhhh, that sentence was very hard to understand. When you said "GBA game libraries such as DirectX" it sounded like you thought DirectX was for GBA.

I guess what you were really asking is whether there are any libraries for GBA that serve a similar purpose as DirectX serves on Windows.

Well, DirectX is mainly a way to allow game developers to write software that runs fast on any hardware that has DirectX drivers. It's an alternative to programming directly for a particular type of device (the way many DOS games were written specifically for Soundblaster cards).

It's also there as a compromise between direct hardware access (which is bad on a protected OS) and bulky software layers such as GDI. In fact, the reason it's called DirectX is because it's more direct than something like GDI.

Since none of those benefits apply to GBA (it's always the same hardware, and you can access the hardware directly with no problems), DirectX would be redundant.

Of course there are plenty of libraries that take care of some of the low-level details for you (HAM, Mushroom, SGADE, etc), if you don't want to write such code yourself.

#14299 - dagamer34 - Sun Jan 04, 2004 1:06 am

One solution, make your own.

The GBA really is too simple to do something like that. There is only one area that sprite data can be contained, 4 backgrounds usable at most, and only 6 buttons and a D-pad.

Simple, eh?
_________________
Little kids and Playstation 2's don't mix. :(

#14301 - sajiimori - Sun Jan 04, 2004 1:18 am

Quote:

One solution, make your own.

Solution to what? The OP only asked if there was something available.
Quote:

The GBA really is too simple to do something like that.

It's too simple to use abstraction? Good luck writing your spaghettiware.

#14308 - Lord Graga - Sun Jan 04, 2004 2:14 am

Game libraries? The closest you would get to that is HAM.

#14315 - plasma - Sun Jan 04, 2004 3:25 am

There's also the SGADE library

#14319 - sajiimori - Sun Jan 04, 2004 8:12 am

I'll just watch as people reconstruct individual aspects of my post, one by one. ;-)

#14327 - bomberman - Sun Jan 04, 2004 10:54 pm

And very soon you will have Ximox ;O)
I'm just redesigning the site, once done, you'll be able to download it ! Its purpose is ease of use and not efficiency (not yet), so I would recommend it for beginners.

http://rmstudiogames.free.fr