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.

Beginners > Drawing sprites...

#8604 - Wanted - Wed Jul 16, 2003 12:13 pm

Hi,

I am new in emulation, i wanted to write a GBA Emu,
I can code the CPU, RAM etc..

But i dont know how to draw the sprites of a ROM Image when
I load it. How is it possible to draw the sprites??

I use MSVC++6.

Thanks in advance!!

#8622 - Ninja - Wed Jul 16, 2003 7:21 pm

That's easy enough. ;) Draw them via DirectDraw, SDL, OpenGL, Direct3D, or even the Windows GDI. Same way you would normally draw a sprite.

#8625 - Wanted - Wed Jul 16, 2003 7:42 pm

Hi,

Thanks for your Reply!! :)

Could you give me some examples??
If possible in Windows GDI and/or OpenGL.

Thanks very much! :)

#8723 - jcpredator - Fri Jul 18, 2003 5:23 pm

Maybe posting or looking on the web for some examples or forums specifically for WindowsGDI, OpenGL, or Direct3D would help you out more than on a GBA dev forum. Obviously you are making a GBA emu but asking someone for examples of a PC API, like Direct3D, does not belong or fit on this forum. Would resemble someone going to a bread shop and asking for information on the different kinds of donuts there are at a nearby donut shop.

Just my thoughts...

-Jc-
_________________
There is no spoon...

#8726 - Ninja - Fri Jul 18, 2003 5:38 pm

To program an emulator, you must first know how to both program a game on the system you are emulating, and how to program a game on the system you are intending to write the emulator for.

It's a pretty basic question actually. I would seriously rethink the idea of writing an emulator if you don't have that information. An emulator is a difficult project, and it is not recommended for newer programmers.