C++ interface tutorials

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

C++ interface tutorials

Post by kojikun »

Ok, I've decided I'm going to try c++ for the game I want to make, since im familiar with c++. My problem, tho, is that I cannot find a single bloody tutorial on making interfaces and the like. Can anyone help?
Sì! Abbiamo un' anima! Ma è fatta di tanti piccoli robot.
User avatar
Shinova
Emperor's Hand
Posts: 10193
Joined: 2002-10-03 08:53pm
Location: LOLOLOLOLOLOLOLOLOL

Post by Shinova »

Interface as in graphical menus and like?


You could try going for C Builder, which is C++ with all this stuff that let's you make menus, windows, and whatnot easily and such.

Just a suggestion.
What's her bust size!?

It's over NINE THOUSAAAAAAAAAAND!!!!!!!!!
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Post by kojikun »

and would you happen to also know something which allows the display of graphics, like a game display?
Sì! Abbiamo un' anima! Ma è fatta di tanti piccoli robot.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Look up SDL. Also there are some OSS 3D engines out there. WxWindows is a wrapper for the Windows GUI interface.

Then again, if you are just learning C++, something simpler is suggested.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

WxWindows with other free shit is what I use, someday I'll port my games to Macintosh and Linux ;)
Image
Crazy_Vasey
Jedi Council Member
Posts: 1571
Joined: 2002-07-13 12:56pm

Post by Crazy_Vasey »

What are you after? For games there's SDL and OpenGL, if you want to do GUIs then there's the Win32 API, wxWindows, and a zillion other wrapper libraries.
User avatar
GrandMasterTerwynn
Emperor's Hand
Posts: 6787
Joined: 2002-07-29 06:14pm
Location: Somewhere on Earth.

Post by GrandMasterTerwynn »

kojikun wrote:and would you happen to also know something which allows the display of graphics, like a game display?
For game graphics, I'd personally recommend OpenGL. Mostly because it's free, it's platform-insensitive, and there are about thousands of tutorials out there on how to program in it. An excellent OpenGL toolkit (suitable for small to medium-sized programs) can be found here

GLUT, the OpenGL utility toolkit
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Post by kojikun »

well, OpenGL is good for later on, but right now I need to learn VC++ and such. Problem is, I cant find any GOOD tutorials on the net.
Sì! Abbiamo un' anima! Ma è fatta di tanti piccoli robot.
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

Oh and don't you dare touch that DirectX crap.
Image
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Post by kojikun »

Slartibartfast wrote:Oh and don't you dare touch that DirectX crap.
Yes daddy. :p
Sì! Abbiamo un' anima! Ma è fatta di tanti piccoli robot.
User avatar
Sarevok
The Fearless One
Posts: 10681
Joined: 2002-12-24 07:29am
Location: The Covenants last and final line of defense

Post by Sarevok »

Ok, I've decided I'm going to try c++ for the game I want to make, since im familiar with c++. My problem, tho, is that I cannot find a single bloody tutorial on making interfaces and the like. Can anyone help?
How good are you with C++ ? Do not even think about writting a game untill you can write a decent win32 application all by yourself.

Which compiler you use ? If you have VC++ consider using the MFC for the interface. It is simpler the Win32 API. But if you need flexibility and speed I suggest you use the Wind32 API even though it is complicated. However since you are wrtting a game the DDraw API may be more useful.
Oh and don't you dare touch that DirectX crap.
I have all the DirectX SDKs and find it quite useful.
What are you after? For games there's SDL and OpenGL, if you want to do GUIs then there's the Win32 API, wxWindows, and a zillion other wrapper libraries.
For framework libraries the MFC is recommended. It is written by some of the best programmers and is highly reliable. You may consider writting your own framework. The book "W++: Writting reusable code for windows" by Paul DiLascia is a good starting point in this direction.
well, OpenGL is good for later on, but right now I need to learn VC++ and such. Problem is, I cant find any GOOD tutorials on the net.
If you want to be programmer you must have the urge read a LOT of books. I suggest you begin with "Beginning Visual C++" by Ivor Horton. It covers everything from C++ basics to writting windows applications.
User avatar
GrandMasterTerwynn
Emperor's Hand
Posts: 6787
Joined: 2002-07-29 06:14pm
Location: Somewhere on Earth.

Post by GrandMasterTerwynn »

kojikun wrote:well, OpenGL is good for later on, but right now I need to learn VC++ and such. Problem is, I cant find any GOOD tutorials on the net.
Actually programming and debugging in the Visual C++ environment is really easy (it has a decent debugger/execution tracer). What you want to learn is MFC (Microsoft Foundation Class) so you can learn how to write the basic Windows interface to your C++ program. Sure you could learn the basic Win32 API, but it's like trying to stuff a 350 small-block into a Honda Civic. Yes, it's powerful, but it's godawful hard to do and really isn't worth the effort (since, to be honest, the bulk of your programming time will be spent writing your OpenGL stuff anyway.)
Post Reply