I am pretty new to C++. I want to start to put graphics in my programs. Can you point me to some toutorials that might be good for ma (a beginner).
I am pretty new to C++. I want to start to put graphics in my programs. Can you point me to some toutorials that might be good for ma (a beginner).
First, its is important for you to know that there are no graphics, color, mouse, or sound in ANSI/ISO Standard C++.
This means that you need an additional library for graphics, and your program will depend on the graphics library you choose. If somebody gives you a graphics example, and you use a different library, it won't work for you. (Your compiler probably already includes a graphics library).
Cprogramming.com has an OpenGL Tutorial. I've never used OpenGL, but I've done some graphics with the WinAPI (Microsoft Windows). It's fairly easy to draw simple shapes with the WinAPI, and any Windows compiler can do it. But, first you need a Windows GUI program, and there is a fair amount of Windows-specific (non-standard) code required just to create a Window, and Windows programming isn't really for beginners.
P.S.
Before you use any special-purpose library, you generally need a good understanding of functions, structures, pointers, typedefs, etc. If you are an absolute beginner, it's probably too soon to try using a graphics library. But, it's OK to start doing some research and looking at examples & documentation.
Last edited by DougDbug; 01-10-2008 at 07:49 PM.
I just started trying to learn that, and I agree fully with you, it is not for begginers ( aka me)there is a fair amount of Windows-specific (non-standard) code required just to create a Window, and Windows programming isn't really for beginners.