954,132 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

C++ graphics

hey... im in a c++ class at school but i also program at home. my teacher refuses to teach me graphics and i wanted to know if there was an easy way to just basically cout a graphic. if this is noobish and i need to learn a lot more tell me, if not can you just give a short code sample?

thanx...

Bleek
Light Poster
28 posts since Mar 2004
Reputation Points: 45
Solved Threads: 0
 

you need to learn a lot more to use graphics. most windows apps use the win32 API to display windows/pics/etc.. here is a tutorial bout it tho:
http://www.relisoft.com/win32/winnie.html

infamous
Junior Poster in Training
77 posts since Mar 2004
Reputation Points: 47
Solved Threads: 2
 

this is where i first learned to make a GUI (which btw is not taught in most C/C++ classes becuase it is not standard, and is OS dependant)

I prefer Win32 API over MFC, but I reccomend you try both and see which one you like better:

http://winprog.org/tutorial/

As for harcore graphics such as Direct Draw 3d and DirectX heres a good source to start:

http://www.drunkenhyena.com/

try making a screen saver ;)

BountyX
Posting Whiz in Training
230 posts since Mar 2004
Reputation Points: 28
Solved Threads: 9
 

There are a lot of beginner;s resources and such at http://www.thefreecountry.com and http://www.freeprogrammingresources.com for programmers, especially graphics. You also want to check out Adam's assembler tutorial and Denthor of Asphyxia's assembly language tutorials-- the latter is really graphics-oriented--for the real workings of what goes on. They also have several really good PutPixel algorithms, which is really all you need for graphics programming. They can be found at www.programmersheaven.com and gamedev.net, respectivly.

P.S. PERSEVERE!!! I cannot stress how important this is to learning assembly language. It is not like C++ at all, but it is very educational.

Rand al'Thor
Newbie Poster
10 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

I suggest Allegro, its an excellent API, my favorite for 2d work
allegro.cc

Manutebecker
Junior Poster in Training
51 posts since May 2008
Reputation Points: 10
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You