473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Colour and drawings or graphics in C++

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
6 3098
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
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

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
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

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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ali | last post by:
Hi, I wrote the following code and when I loaded the images as static images my background displayed as black (set at start of code), however, now I've started (trying!) to get my image to move,...
0
by: ChadDiesel | last post by:
I have a table of parts that I would like to add a field for drawings. These drawings are image files that are on different tabs in an Excel Workbook--1 image/drawing per worksheet/tab. Most of...
7
by: ChadDiesel | last post by:
Hello everyone, I'm having a problem with Access that I need some help with. The short version is, I want to print a list of parts and part quantities that belong to a certain part group---One...
2
by: Flare | last post by:
Hi. I have made a simple painting applcation. I have a mainform wich creates a class called drawingPanelwich inherit from Panel. In the drawingPaneli have overriden onPaint an the the painting. ...
2
by: Carl Gilbert | last post by:
Hi I am looking to edit an icon at runtime on menu items such as change fill colour. I wish to replicate the features found in most applications where by the coloured bar on a colour picker...
4
by: Thief_ | last post by:
I'm trying to create many squares on a form and for every new square, change the background colour to the next colour. I'm trying to create a colour palette showing all available colours and their...
11
by: Tim Marshall | last post by:
I use Terry Kreft's & Stephen Lebans colour dialog procedures for users to pick colours for various control properties in certain apps. Is there a way to take the colour code that is displayed in...
4
by: rdemyan via AccessMonster.com | last post by:
My application deals with building information. Users may want to view autocad drawings for a particular building. The problem is that the central server is so slow for some users that it could...
3
by: Samuel | last post by:
Can anyone advice how to set the background colour of a new Bitmap Thank you, Samuel
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.