I want to make a game with 2D graphics using c++. What is simple source code for inputing graphics?
I want to make a game with 2D graphics using c++. What is simple source code for inputing graphics?
What OS / Compiler are u using?
Also, what resolution, and graphic quality do you want to have? I have a tutorial on Mode 13h, which uses 320x200x256 resolution. It's at www.brackeen.com
I'm using borland.
If I was going to do 2d graphics. i would set up a 3d draw sceen and just use some texture mapping.
This medthod works in fullscreen, window, OpenGL, and DirectX
Try to help all less knowledgeable than yourself, within
the limits provided by time, complexity and tolerance.
- Nor
Thats not my question... My question was "what is the source code to include graphics in programs"... Because I want to make a game...
nehe.gamedev.net
This site should help. Its offers some good lessons
Try to help all less knowledgeable than yourself, within
the limits provided by time, complexity and tolerance.
- Nor
"what is the source code to include graphics in programs",
this isn't a valid question, because there are about a million ways of doing it.
use a graphics library such as OpenGL, Direct-X, Allegro, or something.
check these links for info
for OpenGL:
http://www.opengl.org
for Direct-X:
http://www.microsoft.com/Directx
for General Gaming "Making" Info:
http://www.gamedev.net
for General Graphics(and more) Programming Info:
http://www.flipcode.com
im not sure for Allegro...
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Than just give me one form of source code to post graphics...
> Than just give me one form of source code to post graphics...
Jesus, lazy.... There's some in FAQ... There's plenty at the links no-one posted... Too busy to follow them?
-Govtcheez
[email protected]
>Than just give me one form of source code to post graphics...
all the stuff i write is too large to post(eg. it uses Win32).
here,
has a bunch of GL examples
http://nehe.gamedev.net
has a bunch of direct-x examples
http://nexe.gamedev.net
and as govt. said all the links i gave previously have plenty of example source.
Last edited by no-one; 02-06-2002 at 06:21 PM.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Again I am using Borland not visual c++. And to what that other guy said about being to busy you have no... idea.
Here let me rephrase my question. How do you include an image that has already been made. In Borland. Specifically, how would you load a .bmp or .gif?
read the format specification, and read the data accordingly, or get a lib to do it for you.
http://openil.sourceforge.net/
DevIL is one thats pretty good, and handles a lot of image types, i think the source is public or was anyway.
http://www.wotsit.org has a lot of Formats you can read through and use to write a loader.
::edit:: http://www.cprogramming.com/boardfaq.html#pic the FAQ has a loader.
Last edited by no-one; 02-06-2002 at 06:55 PM.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
http://www.allegro.ccOriginally posted by no-one
im not sure for Allegro...