By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,676 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,676 IT Pros & Developers. It's quick & easy.

Colour and drawings or graphics in C++

P: n/a
I've been teaching myself the C++ Programming language. So far however,
I have not come across any useful tutorials on how I can output
coloured text, create drawings or graphics in C++. All I can create is
a simple console based application.
I would like to know if it's possible to do it using just the standard
header files or do I have to get proprietary ones. If there's anyone
with a suggestion or a good tutorial he/she knows of, please assist me.

Aug 27 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
In article <11**********************@m73g2000cwd.googlegroups .com>,
fr*********@gmail.com says...
I've been teaching myself the C++ Programming language. So far however,
I have not come across any useful tutorials on how I can output
coloured text, create drawings or graphics in C++. All I can create is
a simple console based application.
I would like to know if it's possible to do it using just the standard
header files or do I have to get proprietary ones. If there's anyone
with a suggestion or a good tutorial he/she knows of, please assist me.
You can't do it with the standard library. There are some possibilities
in the range between standard and proprietary though. OpenGL, for one
obvious possibility, isn't part of the C++ standard, but definitely
isn't proprietary to one organization either -- it's available on a
fairly wide variety of hardware and software, including most of the
widely used OSes (e.g. *BSD, Linux, MacOS, Windows).

--
Later,
Jerry.

The universe is a figment of its own imagination.
Aug 27 '06 #2

P: n/a
Fredmanglis wrote:
I've been teaching myself the C++ Programming language. So far however,
I have not come across any useful tutorials on how I can output
coloured text, create drawings or graphics in C++. All I can create is
a simple console based application.
This is true; no input/output beyond simple console means is possible
with portable C/C++.
I would like to know if it's possible to do it using just the standard
header files or do I have to get proprietary ones. If there's anyone
with a suggestion or a good tutorial he/she knows of, please assist me.
You don't have to use proprietary ones, as there are loads of free
alternatives. You need to look what's available on your platform. What
platform are you using?

If you're a beginner and want to deal with colourful user interfaces,
you might also want to consider a different language. Higher level
languages can provide an easier starting point.

Jens
Aug 27 '06 #3

P: n/a

Jens Theisen wrote:
Fredmanglis wrote:
I've been teaching myself the C++ Programming language. So far however,
I have not come across any useful tutorials on how I can output
coloured text, create drawings or graphics in C++. All I can create is
a simple console based application.

This is true; no input/output beyond simple console means is possible
with portable C/C++.
I would like to know if it's possible to do it using just the standard
header files or do I have to get proprietary ones. If there's anyone
with a suggestion or a good tutorial he/she knows of, please assist me.

You don't have to use proprietary ones, as there are loads of free
alternatives. You need to look what's available on your platform. What
platform are you using?

If you're a beginner and want to deal with colourful user interfaces,
you might also want to consider a different language. Higher level
languages can provide an easier starting point.

Jens
Thanks. I am using Windows Operating Systems though I want at the
earliest convenient time to transfer to Linux. However since I am
currently using Windows I could take any help you have currently.

Aug 27 '06 #4

P: n/a
Fredmanglis wrote:
Thanks. I am using Windows Operating Systems though I want at the
earliest convenient time to transfer to Linux. However since I am
currently using Windows I could take any help you have currently.
If that means you're using VisualStudio, I'd just use what Microsoft
offers, as it's probably an easy start - though it's indeed proprietary.

It really depends on quite a lot of things, but my impression is that
you don't really care and just want to play around a bit with graphical
user interfaces. In this case, VisualStudio might be good starting point
- though I don't have any experience with it.

There are zillions of alternatives, but it doesn't really matter too
much, if you just want to experiment.

Jens
Aug 27 '06 #5

P: n/a

Fredmanglis wrote:
I've been teaching myself the C++ Programming language. So far however,
I have not come across any useful tutorials on how I can output
coloured text, create drawings or graphics in C++. All I can create is
a simple console based application.
I would like to know if it's possible to do it using just the standard
header files or do I have to get proprietary ones. If there's anyone
with a suggestion or a good tutorial he/she knows of, please assist me.
I was like you one year ago, looking for a convenient way to draw in
C/C++.
I can advise you SDL, which is a very well documented open source
multiplatform library, and totally free !!! To my opinion, SDL is
perfect to begin with 2D graphics, though you can also use to make 2D
games because SDL manages input (keyboard, joystick, mouse).

I started with this very good serie of 6 tutorials. Starting from
scratch, the last tutorial will cover anything to develop a space
shooter like game.

Here are the tutorials :
http://cone3d.gamedev.net/cgi-bin/in...s/gfxsdl/index

And here is the website :
http://www.libsdl.org where you can download the runtime and the
developement libraries

Aug 27 '06 #6

P: n/a

Aurelien rainone wrote:
Fredmanglis wrote:
I've been teaching myself the C++ Programming language. So far however,
I have not come across any useful tutorials on how I can output
coloured text, create drawings or graphics in C++. All I can create is
a simple console based application.
I would like to know if it's possible to do it using just the standard
header files or do I have to get proprietary ones. If there's anyone
with a suggestion or a good tutorial he/she knows of, please assist me.

I was like you one year ago, looking for a convenient way to draw in
C/C++.
I can advise you SDL, which is a very well documented open source
multiplatform library, and totally free !!! To my opinion, SDL is
perfect to begin with 2D graphics, though you can also use to make 2D
games because SDL manages input (keyboard, joystick, mouse).

I started with this very good serie of 6 tutorials. Starting from
scratch, the last tutorial will cover anything to develop a space
shooter like game.

Here are the tutorials :
http://cone3d.gamedev.net/cgi-bin/in...s/gfxsdl/index

And here is the website :
http://www.libsdl.org where you can download the runtime and the
developement libraries
I do agree SDL is perfect to start.
But SDL does not have multiple windows :( If you need that, you have to
switch to another toolkit.

Aug 28 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.