What is the best game programming library
-
Some years ago I've been doing some little 2D games with GDI. Of course I tried with DirectDraw, and even WinG but I never went as far as with GDI. Lately I decided to visit game programming again and I think the best is to use a Game programming library. I began studying the CDX game library. As it takes time to study the library before just beginning the game, I would like your opinion on various libraries available. I'm looking for a DirectDraw (2D) based library with source code. Thanks, Yarp http://www.senosoft.com/
-
Some years ago I've been doing some little 2D games with GDI. Of course I tried with DirectDraw, and even WinG but I never went as far as with GDI. Lately I decided to visit game programming again and I think the best is to use a Game programming library. I began studying the CDX game library. As it takes time to study the library before just beginning the game, I would like your opinion on various libraries available. I'm looking for a DirectDraw (2D) based library with source code. Thanks, Yarp http://www.senosoft.com/
-
Some years ago I've been doing some little 2D games with GDI. Of course I tried with DirectDraw, and even WinG but I never went as far as with GDI. Lately I decided to visit game programming again and I think the best is to use a Game programming library. I began studying the CDX game library. As it takes time to study the library before just beginning the game, I would like your opinion on various libraries available. I'm looking for a DirectDraw (2D) based library with source code. Thanks, Yarp http://www.senosoft.com/
Hi Yarp! See http://www.gapidraw.com for a simple framework that supports PC and PocketPC developement. Quite fast, free, and you can get the source (as per your requirement). Have a nice day, Martin S. Stoller -- mars@littlelifeforms.ch --
-
Some years ago I've been doing some little 2D games with GDI. Of course I tried with DirectDraw, and even WinG but I never went as far as with GDI. Lately I decided to visit game programming again and I think the best is to use a Game programming library. I began studying the CDX game library. As it takes time to study the library before just beginning the game, I would like your opinion on various libraries available. I'm looking for a DirectDraw (2D) based library with source code. Thanks, Yarp http://www.senosoft.com/
I like LibSdl very much. http://www.libsdl.org[^]
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Windows, BeOS, MacOS Classic, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, and IRIX. There is also code, but no official support, for Windows CE, AmigaOS, Dreamcast, Atari, QNX, NetBSD, AIX, OSF/Tru64, and SymbianOS. SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, Eiffel, Java, Lua, ML, Perl, PHP, Pike, Python, and Ruby.
The library is relatively easy to use (in my opinion :-D). It uses OpenGL, not DirectDraw. :) -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) -
Note that some hardware manufacturers no longer accelerate Direct Draw, so it might be better to use a Direct3D library that lets you use orthographic projection.
And, IIRC, DirectDraw doesn't exist in DX9, so you have to use D3D with such a projection, so to future-proof, that's the way to go... Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
Note that some hardware manufacturers no longer accelerate Direct Draw, so it might be better to use a Direct3D library that lets you use orthographic projection.
Direct Draw not supported anymore ?!? Isn't there a market for simple 2D graphics. I suppose D3D now offers same capabilities, as Stuart suggested in his reply. That also is an advantage of using a good game library. I mean that's what I meant with a good library because it is supposed to be able to switch to D3D one day. In an ideal programming world of course ;) Anyway I feel a bit outdated. Thanks a lot for the informations. Yarp http://www.senosoft.com/
-
I like LibSdl very much. http://www.libsdl.org[^]
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Windows, BeOS, MacOS Classic, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, and IRIX. There is also code, but no official support, for Windows CE, AmigaOS, Dreamcast, Atari, QNX, NetBSD, AIX, OSF/Tru64, and SymbianOS. SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, Eiffel, Java, Lua, ML, Perl, PHP, Pike, Python, and Ruby.
The library is relatively easy to use (in my opinion :-D). It uses OpenGL, not DirectDraw. :) -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;)Hi Dominik, libsdl seems a mature and portable library. This is quite interesting though. I've nothing against OpenGL the only wish I have is to make 2D graphics. I will have a look at the library. What scares me a bit is the number of library addons it seems like a jungle for the neophit I am but it also shows the project is alive. Yarp http://www.senosoft.com/
-
Direct Draw not supported anymore ?!? Isn't there a market for simple 2D graphics. I suppose D3D now offers same capabilities, as Stuart suggested in his reply. That also is an advantage of using a good game library. I mean that's what I meant with a good library because it is supposed to be able to switch to D3D one day. In an ideal programming world of course ;) Anyway I feel a bit outdated. Thanks a lot for the informations. Yarp http://www.senosoft.com/
yarp wrote: Isn't there a market for simple 2D graphics. Yes, there is. And people use Flash for that. It's usually fast enough and Lingo is (or should be) much simpler to code than C++. Acting as a substitute for God, he becomes a dispenser of justice. - Alexandre Dumas