473,699 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Incredibly simple graphics question

I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.

Jason
Jul 22 '05 #1
13 2260
dr************* **@hotmail.com (Jason Swett) writes:
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.


Probably because graphics operations are not provided natively in the
language. If you're on a win32 platform, I suggest you do one or more
of the following (two of which assume you're NOT a MS-dweeb with Visual
Studio):

1. Begin perusing the win32 api. There is a Windows help file with
the api defined at www.mingw.org that I find very helpful.

2. Buy Charles Petzold's book "Programmin g Windows" (whatever the
latest incarnation is).

3. Install mingw and become familiar with the environment.

--Randy
--
% Randy Yates % "She's sweet on Wagner-I think she'd die for Beethoven.
%% Fuquay-Varina, NC % She love the way Puccini lays down a tune, and
%%% 919-577-9882 % Verdi's always creepin' from her room."
%%%% <ya***@ieee.org > % "Rockaria", *A New World Record*, ELO
http://home.earthlink.net/~yatescr
Jul 22 '05 #2
Jason Swett posted:
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.

Jason


Google for "OpenGL C++".
-JKop
Jul 22 '05 #3
"Jason Swett" <dr************ ***@hotmail.com > wrote in message
news:a0******** *************** ***@posting.goo gle.com...
Re: Incredibly simple graphics question I want to do graphics with C++.
Incredibly simple answer:

ISO standard C++ (the topic here) has absolutely no features
which support graphics.

Such a domain is inherently that of the host platform.
Since C++ is, by design, intended to be platform-neutral,
of course no such things are specified by the language.

Platform-specific libraries can be combined with the C++
language to achieve graphical applications on platforms
with graphics features (note that not all have them),
but such issues are not topical here. One such library
which can be built for a variety of platforms is:
www.wxwidgets.org
Surprisingly , so far nobody has been
able to tell me anything helpful.
Because there's nothing to tell.
How do I do it?
You don't.
Any input would be
greatly appreciated.


The following link is to an excerpt from the FAQ for newsgroup
'alt.comp.lang. learn.c-c++', but applies equally to 'comp.lang.c++' :

http://ma.rtij.nl/acllc-c++.FAQ.html#q4.6

Purpose of comp.lang.c++ :
http://www.slack.net/~shiva/welcome.txt

C++ FAQ:
http://www.parashift.com/c++-faq-lite/

You can locate newsgroups about particular topic(s) (e.g. an
operating system / platform) here:
www.groups.google.com

If you're concerned with Microsoft platform(s) (most folks asking
this question here seem to be), the authoritative source is:
www.msdn.microsoft.com
(which also has links to MS-related newsgroups)

-Mike
Jul 22 '05 #4
Jason Swett wrote:
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.


Have you tried www.google.com ?

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 22 '05 #5

"JKop" <NU**@NULL.NULL > wrote in message
news:bm******** ***********@new s.indigo.ie...
Jason Swett posted:
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.

Jason


Google for "OpenGL C++".
-JKop


Google for "OpenGL C++ nehe"

Mike
Jul 22 '05 #6
"Phlip" <ph*******@yaho o.com> wrote in message news:<II******* ***********@new ssvr31.news.pro digy.com>...
Jason Swett wrote:
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.


Have you tried www.google.com ?

Yes, and he came up with
http://groups.google.com/groups?selm...&output=gplain

?STACK OVERFLOW.
Jul 22 '05 #7
"Jason Swett" <dr************ ***@hotmail.com > wrote in message
news:a0******** *************** ***@posting.goo gle.com...
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.


Look into C# if you are on a MS platform. There are free tools
available.
If you do, your future questions can be answered at
microsoft.publi c.dotnet.csharp .general and
microsoft.publi c.dotnet.langua ges.csharp

--
Mabden
Jul 22 '05 #8
Jason Swett wrote:
I want to do graphics with C++. Surprisingly, so far nobody has been
able to tell me anything helpful. How do I do it? Any input would be
greatly appreciated.

If you mean 3D graphics etc:

1) A multi platform graphics library is OpenGL.

2) A Windows library is DirectX, however in the upcoming Windows
version, DirectX will become a subset of the managed WinFX and probably
will change, so it would be better not invest much time on DirectX now.


If you mean GUI stuff, in Windows learn .NET. A good book to start is

"Visual C++ .NET How to Program" by Deitel.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #9
Mabden wrote:
Look into C# if you are on a MS platform.

Don't troll.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1323
by: Support | last post by:
Hello: Using asp.net (vb) and I dont want to use active X controls - just server side code. I have uploaded a gif file but I want to resample it to a smaller size like 100 by 100 and save it to a file - simple ? right ? Upload -> Original.gif resample save as ->resampled.gif
5
1579
by: fripper | last post by:
I have a VB 2005 app ... main window has a picture box control (picControl) .... I want to draw a rectangle in that control using GDI+ ... something like: Dim g as graphics = creategraphics|() Dim r as Rectangle Dim b as new system.drawing.solidbrush(system.drawing.color.red) r.x = 100 r.y = 100
4
1430
by: pcnerd | last post by:
I originally asked this question in the "classic" VB forum. It occured to me after I had sent it that I sent it to the wrong forum. Anyway! Here's the situation. I have VB.NET 2005 Express Edition. I have a 19" LCD monitor with the resolution set at 1280 by 1024. I want to create a graphics program, say, displaying fractals that will run with the form maximized. Are the XY coordinates on the form independent of the size & resolution of...
5
1415
by: Tim | last post by:
hi I used to do this Dim gfx As System.Drawing.Graphics = pic1.CreateGraphics gfx.FillEllipse blah blah blah to draw straight onto a form. but this is frowned up (slow).
6
3242
by: Chris Dunaway | last post by:
The method for printing documents in .Net can be confusing, especially for newer users. I would like to create a way to simplify this process. My idea would be implemented using a PrintDocument (much like the current model), but my PrintDocument would have a Pages collection such that each time you need to have an additional page, you would just add another page to the collection and then use the page object for the actual drawing etc. ...
15
1838
by: Hamed | last post by:
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed
4
3109
by: Carsten Schmitt | last post by:
Hello, I want to draw a simple pixel (i.e. a red pixel in the center of the screen), which is always in the foreground - even when running a fullscreen application like a DirectX game. I need this as an easy entry for programming later a HUD, which shows several informations, like date, time, company logo, etc. Any help or just a simple code example would be appreciated.
1
1475
by: James Willmott | last post by:
If I have a question, about how to implement a graphics algorithm in C++, but not specifically related to getting the graphics on screen (that I can work out for myself). Would asking for help in the implemention ( asking things like whether I should use std::vector vs std::list for example ) be off topic here? Thanks, jw.
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9185
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7773
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4389
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.