Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-07-2010, 09:05 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 5
edson1314 is on a distinguished road
Default How do you program applications/games in C++?

ver the past couple of months I have been learning the C++ programming language on my Mac OS X using Xcode. So far I have only been able to make command line applications that run through Terminal, but I have heard that there are massively complete games and applications that are written in C++. How exactly are such games and applications written? Please include any downloads I might need and possibly some good tutorials on the subject.
If programming games and applications on a Mac OS X is impossible without help from another language such as Cocoa or Carbon (understand that I am not really interested in learning such a language, I want to know if there is a way to write games and applications purely in C++ or possibly with the help of an application meant to facilitate the process of game/application development) then could you please answer a second question of mine, which is: can you program applications and games on a computer running Windows? If this is so please include any downloads I may need develop such games and/or applications and some good tutorials on the subject.
-Note: on my Windows computer I am using Code::Blocks and a GNU C++ compiler

Thank you in advance!
edson1314 is offline   Reply With Quote
Old 11-07-2010, 10:38 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 31
akac is on a distinguished road
Default

Well first Cocoa and Carbon are not languages. They are frameworks. Carbon uses C/C++. Cocoa uses Objective-C which is a superset of C. You could use Objective-C++ which is a superset of C++.

You have no choice but to use Carbon or Cocoa if you want a GUI of any kind on Mac OS X, kind of like you have no choice but to use Win32 on Windows if you want to make a window there. Or X11 and I can go on.

For stuff like apps, you really must learn Cocoa or in some cases you can use QT which is a C++ framework that uses Cocoa underneath.

But if you are writing a game, you learn just enough Cocoa to create a window with an OpenGL view, and then the rest of your game is in C++ and OpenGL.
akac is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 462
17 members and 445 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, ilmman, j.b.rajesh@gmail.com, jeroenkeij, mer10, mkjarred, myach, pipposanta, QuantumDoja, robsmy, sacha1996, SLIC, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0