
-----------------------------------
Danjen
Wed Oct 29, 2008 7:52 pm

Question about C++
-----------------------------------
So like, does this language support any graphics, or is it all terminal based?

-----------------------------------
Zampano
Wed Oct 29, 2008 8:08 pm

Re: Question about C++
-----------------------------------
http://compsci.ca/v3/viewtopic.php?t=9678
Yes.

-----------------------------------
Danjen
Wed Oct 29, 2008 8:10 pm

RE:Question about C++
-----------------------------------
Huh... Thanks! :D

-----------------------------------
[Gandalf]
Wed Oct 29, 2008 8:12 pm

RE:Question about C++
-----------------------------------
Assuming this is a serious question...  Yes, C++ can do graphics, operating systems, databases, rocket ships, it can even conquer the world.  Come on, the majority of video games are at least in part programmed in C or C++!  Of course, it's not as easy as Turing.

-----------------------------------
Danjen
Wed Oct 29, 2008 8:18 pm

RE:Question about C++
-----------------------------------
Actually, I'm kind of excited to learn this language, I got a hefty book for free from one of my teachers, and it didn't really seem to explain it. This definitely helped though.

-----------------------------------
Tony
Wed Oct 29, 2008 8:36 pm

RE:Question about C++
-----------------------------------
Except that all the graphics are done outside of C++, by the rendering engines (see link quoted above). If you are interested just in this graphical API, C++ is probably not the best tool to help you learn it.

OpenGL comes with [url=http://en.wikipedia.org/wiki/Opengl#Bindings]bindings for about every language, including Python, Ruby, Scheme, and even *sigh* PHP.

You can go with even higher level packages like [url=http://en.wikipedia.org/wiki/Simple_DirectMedia_Layer]SDL or even [url=http://en.wikipedia.org/wiki/Microsoft_XNA]XNA (although that last one will limit you to .Net only).

Point is, unless you are taking an upper year University course in Graphics, writing your own rendering engine, you are not actually drawing anything with C++.

-----------------------------------
Rigby5
Wed Oct 29, 2008 11:14 pm

RE:Question about C++
-----------------------------------
Anything output to the screen has to use libraries in order to be compatible and compliant with other programs that open windows.
And unless you actually want to turn exact pixels on and off, you need to learn a graphics library API that does the detail of more complex objects like polylines, circles, ovals, fonts, etc., for you.
Windows has the old GDI Graphic Display Interface), or DirectX, while Linux has the lower level XWindows, or above that, KDE or Gnome.

-----------------------------------
Danjen
Thu Oct 30, 2008 9:26 am

RE:Question about C++
-----------------------------------
So if I want to make a typical Windows game, I should be using VB instead of C++?

-----------------------------------
md
Thu Oct 30, 2008 9:42 am

Re: RE:Question about C++
-----------------------------------
So if I want to make a typical Windows game, I should be using VB instead of C++?

No. You should use the most apropriate language you know. 

Really, most libraries, operating systems, programs, etc. are written in C or C++. Learning them is usually something that will be useful in the long run. Learning them specifically to write a game may not be the best idea.

-----------------------------------
Rigby5
Fri Oct 31, 2008 11:34 pm

RE:Question about C++
-----------------------------------
You need to decide what kind of game you want to write.
If it is a slow strategy game, then the old GDI Windows API is fine, and that is easy to lean in C.
If you need more speed, then you need to learn the C++ interface APIs to DirectX.

Here is an online tutorial for Windows game programming C++:
http://www.hwg.org/services/classes/cgame2.html
