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.

Coding > Creating a DirectX wrapper for the GBA

#25134 - enliteneer - Tue Aug 17, 2004 6:44 am

I recently picked up a Game Programming book on DirectX, and it occurred to me that the ideas of pallettes, sprites, video buffers, etc are virtually the same for the pc as they are for the GBA.

Is it feasible, or even worthwhile, to write a gba equivalent pseudo-directX wrapper (by implementing the directX api)?? At least for simple 2d games, games could be ported back and forth from pc to gba. A general game programming standardization!

Any thoughts??

#25135 - sajiimori - Tue Aug 17, 2004 7:05 am

The ideas are not the same. As you learn more about the GBA, you'll realize that it's far more limited than a general-purpose platform like DirectX.

Still, it's entirely possible to implement the same engine on GBA and PC. Since the GBA is the limiting factor, you should design the interface to suit the GBA's hardware, rather than trying to make the GBA emulate a more flexible system. I tried it, and it worked pretty well.

#25136 - NoMis - Tue Aug 17, 2004 7:41 am

The ds would be more suitable for a directx style api. But I would prefer OpenGL.

#25166 - sajiimori - Tue Aug 17, 2004 5:21 pm

Perhaps you're thinking of Direct3D, a component of DirectX.

#25168 - tepples - Tue Aug 17, 2004 5:25 pm

Is "DirectSound" a Windows audio API, or is it the GBA's PCM channels?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#25170 - DiscoStew - Tue Aug 17, 2004 6:17 pm

"DirectSound" is both, though on the GBA it is the actual PCM channels, while in DirectX it is a library for handling audio.
_________________
DS - It's all about DiscoStew

#25176 - dagamer34 - Tue Aug 17, 2004 7:40 pm

enliteneer wrote:
I recently picked up a Game Programming book on DirectX, and it occurred to me that the ideas of pallettes, sprites, video buffers, etc are virtually the same for the pc as they are for the GBA.

Is it feasible, or even worthwhile, to write a gba equivalent pseudo-directX wrapper (by implementing the directX api)?? At least for simple 2d games, games could be ported back and forth from pc to gba. A general game programming standardization!

Any thoughts??


DirectX is too abstract for the GBA. It constantly passes interfaces back and forth between functions, which a waste of time on an embedded platform. Besides, the GBA is quite easy to program. Take 4 weeks with the system and you will pretty much grasp enough to port a simple 2D game.
_________________
Little kids and Playstation 2's don't mix. :(