Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,028 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,582 people online right now. Registration is fast and FREE... Join Now!




Graphical C++ Programming

2 Pages V  1 2 >  
Reply to this topicStart new topic

Graphical C++ Programming, any good books?

Delta_Echo
2 Feb, 2008 - 01:12 PM
Post #1

D.I.C Regular
***

Joined: 24 Oct, 2007
Posts: 480


My Contributions
I want to take my programming abilities and skill to the next level. Graphics smile.gif

Nothing major, just pixels, 2d like simple games, witch is why im learning c++ in the first place.
So anyone know of any good books? Or tutorials?

Thanks biggrin.gif

Live long and code strong.
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Graphical C++ Programming
2 Feb, 2008 - 01:25 PM
Post #2

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,592



Thanked: 12 times
Dream Kudos: 325
My Contributions
C++ (like C) doesn't provide any native support for graphics. You'll have to pick a library.

Allegro is a graphics library usable in C++. I'd give it a look. There are examples/tutorials on the site. smile.gif
User is offlineProfile CardPM
+Quote Post

Delta_Echo
RE: Graphical C++ Programming
2 Feb, 2008 - 01:33 PM
Post #3

D.I.C Regular
***

Joined: 24 Oct, 2007
Posts: 480


My Contributions
Thank smile.gif
User is offlineProfile CardPM
+Quote Post

Jingle
RE: Graphical C++ Programming
2 Feb, 2008 - 02:21 PM
Post #4

D.I.C Regular
***

Joined: 20 Oct, 2007
Posts: 250


My Contributions
what IDE and compiler and OS are you using.
some have built in features and tools that are specifically for what you want.

This post has been edited by Jingle: 2 Feb, 2008 - 02:22 PM
User is offlineProfile CardPM
+Quote Post

MorphiusFaydal
RE: Graphical C++ Programming
2 Feb, 2008 - 02:40 PM
Post #5

D.I.C Lover
Group Icon

Joined: 12 May, 2005
Posts: 1,215



Thanked: 15 times
Expert In: Hardware, Networking

My Contributions
QUOTE(Jingle @ 2 Feb, 2008 - 04:21 PM) *

what IDE and compiler and OS are you using.
some have built in features and tools that are specifically for what you want.


I can think of two - Visual Studio (Windows.Forms), and XCode (Cocoa apps). The closest to what he's asking would be Xcode and Cocoa. And that's just a library, like Allegro. Windows.Forms in C++ would require either Managed C++, or C++/CLI. Either of which would essentially be a new language. ISO C++ has no built in graphics capabilities.

This post has been edited by MorphiusFaydal: 2 Feb, 2008 - 02:43 PM
User is online!Profile CardPM
+Quote Post

Delta_Echo
RE: Graphical C++ Programming
2 Feb, 2008 - 02:50 PM
Post #6

D.I.C Regular
***

Joined: 24 Oct, 2007
Posts: 480


My Contributions
I use Linux and gcc.
And, what do you all mean by library?

This post has been edited by Delta_Echo: 2 Feb, 2008 - 02:58 PM
User is offlineProfile CardPM
+Quote Post

MorphiusFaydal
RE: Graphical C++ Programming
2 Feb, 2008 - 03:44 PM
Post #7

D.I.C Lover
Group Icon

Joined: 12 May, 2005
Posts: 1,215



Thanked: 15 times
Expert In: Hardware, Networking

My Contributions
http://en.wikipedia.org/wiki/Library_%28computing%29
User is online!Profile CardPM
+Quote Post

Delta_Echo
RE: Graphical C++ Programming
2 Feb, 2008 - 04:00 PM
Post #8

D.I.C Regular
***

Joined: 24 Oct, 2007
Posts: 480


My Contributions
Ty
User is offlineProfile CardPM
+Quote Post

pertheusual
RE: Graphical C++ Programming
2 Feb, 2008 - 05:02 PM
Post #9

D.I.C Head
**

Joined: 26 Jan, 2008
Posts: 233



Thanked: 4 times
My Contributions
If you want to make a game, then you might want to take a look at OpenGL and SDL.
I haven't worked with Allegro at all, so I don't know how it compares.

I only started learning OpenGL about 2 months ago, but the game that I'm making is coming along pretty well.

I found these two sites extremely helpful.

SDL Tutorials
OpenGL Tutorials

The OpenGL Reference website and SDL Wiki are also very helpful.

Per
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Graphical C++ Programming
2 Feb, 2008 - 06:12 PM
Post #10

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,592



Thanked: 12 times
Dream Kudos: 325
My Contributions
Allegro is all software rendering IIRC, but it is geared more towards making games than Opengl or SDL.

Allegro also has OpenGL bindings if you want to do that (fyi OpenGL is usually hardware accelerated, but that's overkill for most 2d games).

I would honestly give Allegro a try first. The site I linked to, and the Allegro.cc site (there's a link on the side menu at the site I linked to) are packed with user created libraries (for creating games), game creation tutorials, and game examples/resources.

If you don't like it, then give SDL a try.

I use OpenGL, and I like it, but I wouldn't recommend it to a user who (by the sound of it) is new to programming.

And please, ask what OS a user is using before you recommend that they use Windows Forms. tongue.gif
User is offlineProfile CardPM
+Quote Post

draike
RE: Graphical C++ Programming
2 Feb, 2008 - 11:48 PM
Post #11

New D.I.C Head
*

Joined: 2 Feb, 2008
Posts: 4


My Contributions
QUOTE(pertheusual @ 2 Feb, 2008 - 06:02 PM) *

If you want to make a game, then you might want to take a look at OpenGL and SDL.
I haven't worked with Allegro at all, so I don't know how it compares.

I only started learning OpenGL about 2 months ago, but the game that I'm making is coming along pretty well.

I found these two sites extremely helpful.

SDL Tutorials
OpenGL Tutorials

The OpenGL Reference website and SDL Wiki are also very helpful.

Per


i agree witht his... nehe for 1 is a source that i have used (OpenGL Tutorials link listed above)... not only is it comprehensive but it gives you somewhat of a look into the windows header file and functions contained in...
not to mention how indepth it gets about GL...
also if you can find the
Red Book - OpenGL Programmers Guide
or
Blue Book - OpenGL Reference Guide
they will also explain alot although they tend to rely to much on GLAUX.H...
this is a great file but i find the ammount of control you have lacking when it comes to prebuilt specification... you have way more control learning to just initialize GL through GL.H and GLU.H in my opinion...

This post has been edited by draike: 2 Feb, 2008 - 11:51 PM
User is offlineProfile CardPM
+Quote Post

draike
RE: Graphical C++ Programming
3 Feb, 2008 - 12:04 AM
Post #12

New D.I.C Head
*

Joined: 2 Feb, 2008
Posts: 4


My Contributions
QUOTE(Delta_Echo @ 2 Feb, 2008 - 03:50 PM) *

And, what do you all mean by library?


maybe you should also look into
i believe this book is a free resource for download
Thinking in C++ ( Bruce Eckel )
// which he has a web-site and has many different books, was if not still gives seminars, and also does Java...
http://www.bruceeckel.com

The C++ Programming Language ( Bjarne Stroustrup )

if not then you might be inclined to check out the different languages out there... they can be very powerful and use less resources than most bulky front ends applications... or just become and end-user :-D bad joke i know...
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
Time is now: 1/8/09 09:31PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month