Reputation: 3255
What libraries can i use for motion and blending in game programming in c++? I need libraries regarding sound, image, expansion algorithm like 2xsai and super eagle. I need libraries like fblend and also for motion . How to compile functions of fblend in devcpp? 2d gaming... and the library should be compatible with devcpp
Upvotes: 1
Views: 1766
Reputation: 11
Begin using GNU Emacs (gnu.org/software/emacs) and gcc (gcc.gnu.org or mingwm.org for a windows version). Get comfortable with your OS's shell (command line), enough to create files, change directories and copy/move files.
Read up a bit on Emacs's features (almost endless), then get started (IDE's are there just to hide the command line from you).
SDL gives you access to the computer's video card in a cross platform way, it can also play sound, and there's many third party addons for it (SDL Image, SDL TTF to name a few). However, it does not offer 3d capability, use OpenGL for that (you can use SDL along with OpenGL). I recommend starting with SDL1.2 before SDL2.0, as it's simpler. www.libsdl.org/release/SDL-1.2.15/docs/html/ is a great place to start picking up SDL1.2.
SDL1.2 does not provide any primitive drawing routines, that's not a problem if you do an internet search you will find many algorithms that can be implemented in a simple file.
OpenAL is a library for 3d sound.
There exists open source versions of all the software i've referred to in this post.
Upvotes: 1
Reputation: 1311
Gosu is a compact, thoughtful library for C++ (with Ruby bindings as well). I'm using Gosu right now for a project, and it lives up to its promise: it is indeed minimal, but it doesn't get in your way.
Alternatively, there is SDL. SDL is ultimately a fairly low-level API for doing 2D graphics with OpenGL.
I used to use ClanLib all the time. It was very feature-rich. However, its development seemed extraordinarily slow, and I eventually moved on. It's certainly worth looking at, though.
For basic physics in 2D, you may find Box2D useful. Its documentation is unfortunately somewhat poor and confusing, but overall it's a good library. Using a 3D physics engine if you're just going to do 2D work is definitely over-kill and will make your job much harder than it needs to be.
Using one of these libraries is not strictly necessary, although I would strongly recommend. It's entirely possible to build a game using OpenGL or Direct3D directly. This route is preferable if you have plans on implementing rather advanced graphical techniques.
As Ben said, gamedev.net is a phenomenal place for questions about game development. I've been viewing the forums there for years now.
Finally, I have an incomplete listing of free game development technologies here, including libraries for languages other than C++.
Upvotes: 3
Reputation: 2844
DevMaster is a nice place to start with.
Check Irrlicht - one of the best, free engines. It is very easy to start and get going.
Upvotes: 3
Reputation: 6290
I use mainly these two libraries for 3d gaming:
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
ODE is an open source, high performance library for simulating rigid body dynamics. It is fully featured, stable, mature and platform independent with an easy to use C/C++ API. It has advanced joint types and integrated collision detection with friction. ODE is useful for simulating vehicles, objects in virtual reality environments and virtual creatures.
Upvotes: 5
Reputation: 40951
You definitely want to look at shaders. Shaders allow you to use world data or previous frame data to decorate the current scene. Doing so it's relatively easy to create motion blur and other effects using shaders.
I'd recommend reading up on http://gamedev.net and maybe checking out some of the books called Game Programming Gems.
Upvotes: 2