C++ help load image, and use keyboard.

Started by
4 comments, last by Brother Bob 8 years, 11 months ago
Hi, im just tryin to figure out how to load images onto the screen, (non dos mode/ non terminal mode) in C++ and use the keyboard. Any sites recommend is well appreciated. I've been trying to sample code off the net to see how they do it themselve's but im using Dev C++ from bloodshed.net and there is always an error when I compile it. Is there any solution to this?
Advertisement
You want some kind of graphics API.

Try SDL, there is a devpack avaiable for it I think, but its an older version.

The reason the sample code doesn't compile is possibly because you don't yet know how to link to such graphics libraries, or you dont have them installed correctly.

If you have problems, post them here. Include all errors that the compiler gives you.
Thanks, will do.
Just one second which SDL package do I download? Could you give me the direct link.

I got the list of SDL Language Bindings, and under the C++ libraries only I got this list. I honestly don't know which to use, for I don't know what the documentation, and articles refer to, and don't know which one you want to recommend.

Amaltheia library - Amaltheia is an intuitive and simple 3D/2D game programming API that supports two backends, OpenGL and DirectX, in a platform independent manner
http://home.gna.org/amaltheia/
Contact: psybases gmail com
linux win32
work in progresswork in progress
License: GNU LGPL

CRM32Pro SDK - API built on top of SDL with everything you need to develop 2D games: tiles, sprites, fonts, special effects, sound, timer, network, log system, video playback, XML parser, etc. An useful resources editor, tutorials and a reference guide are included
http://www.megastormsystems.com
Contact: megastorm mi.madritel.es
linux win32
fully functionalfully functional
License: Freeware

DivGL - Is a 2D OpenGL hardware accelerated blitter, graphic loader, frame manager, a DIV like sprite system, and more utilities for creating video games. It works under SDL. It's portable, and easy to use (doc only in spanish)
http://sourceforge.net/projects/divgl
Contact: hiperbou hotmail.com
linux win32
ready for testingready for testing
License: GNU GPL

Easy Game Library - Library of C++ classes designed to provide easy development of games
http://easygamelib.sourceforge.net
Contact: vgrichina mail.ru
linux
work in progress
License: GNU LGPL

Eclipse - 2D game wrapper for SDL and FMOD covering image loading, zip files, audio loading, fonts and animated sprites
http://sourceforge.net/projects/eclipseeng/
Contact: spudder blueyonder.co.uk
linux win32
fully functionalfully functional
License: BSD-style

Fast Events - A fast thread based replacement for SDL event routines
http://gameprogrammer.com/game.html
Contact: bob pendleton.com
linux win32
fully functionalfully functional
License: GNU LGPL

GameBlade - GameBlade is a C++ Framework for SDL, SDL_image and SDL_mixer making game development even easier than it already is, without putting any restrictions on the complexity of the game
http://gameblade.sourceforge.net
Contact: nokturn32(at)poczta.onet.pl
linux win32
fully functionalready for testing
License: GNU GPL

LibKSD - a C++ game framework
http://libksd.sourceforge.net/
Contact: xevol users.sourceforge.net
linux win32
fully functionalready for testing
License: GNU LGPL

libwt - libwt - a, SDL Based, C++ widget toolkit
http://libwt.sourceforge.net/
Contact: vasvir2 fastmail.fm
linux
ready for testing
License: GNU LGPL

mxFont/mxSDL - A Font Editor to Use Windows fonts in SDL
http://lostsidedead.com/mxsdl
Contact: jaredbruni gmail.com
linux macosx freebsd
fully functionalfully functionalfully functional
License: GNU GPL

NET2 - A multi-threaded, event driven, network IO library for SDL.
http://gameprogrammer.com/game.html
Contact: bob pendleton.com
linux win32
fully functionalfully functional
License: GNU LGPL

oSDL - a C++ class framework for SDL
http://osdl.berlios.de/
Contact: segfault_ii web.de
linux win32
work in progresswork in progress
License: GNU LGPL

SDLmm - a C++ class-based wrapper for SDL
http://sdlmm.sourceforge.net/
Contact: david hedbor.org
linux win32
ready for testingready for testing
License: GNU LGPL

SDLPP - A C++ Wrapper API for SDL
http://www.rwsoft.ca/projects.html
Contact: ron rwsoft.ca
linux
fully functional
License: BSD-style

SDLucid - a C++ library wrapping and extending SDL
http://sdlucid.sourceforge.net/
Contact: ak ixion.net
linux win32
fully functionalready for testing
License: GNU LGPL

SDL_VKPToolkit - SDL_VKPToolkit aims to simplify and unify many different libraries of SDL to a group of codes,under some logic, so that game/application making will be easy to be done, with as few as possible code writting
http://groups.yahoo.com/group/SDL_VKPToolkit/
Contact: terablade2001 yahoo.gr
linux win32
ready for testingfully functional
License: GNU LGPL

spritelib - A crossplatform C++ object-oriented isometric arcade-game framework
http://burningsmell.org/crossfire/spritelib.html
Contact: tsm accesscomm.ca
linux win32 solaris wince
fully functionalfully functionalfully functionalwork in progress
License: GNU GPL

wGui - wGui is a simple, platform independent dialog manager library using SDL and FreeType2
http://wgui.sourceforge.net
Contact: rob-dev boxedchaos.com
linux win32
fully functionalfully functional
License: GNU LGPL

XLibrary - A kind of SDL wrapper that provides an OOP approach to SDL and developing in it, while providing a GUI
http://www.delphisanctuary.com/metacipher/xaero/
Contact: MetaCipher msn.com
linux win32
work in progresswork in progress
License: Unknown

that right there is the big list I generated for different API libraries.

i also want to know how to load images and to move them using keyboard in dev c++

can any ane help me with this

Start a new thread if you want help. No need to resurrect an almost 9 year old thread.

This topic is closed to new replies.

Advertisement