Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Can I develop OpenGL ES iPhone simple physics app with Xcode 3 in C++ without a GUI and Objective-C? So I don't need Cocoa and I don't need Objective-C?

share|improve this question
You want to build a graphics app without a GUI? I'm confused... –  Jeremy Heiler Jun 5 '12 at 20:34
just for a start like in example when making a new project but not that cube and just 3D Box made with Blender that I can touch with iPhone in realtime, or I need Cocoa anyway? –  Saulius Jun 5 '12 at 20:36
If you have a giant codebase that requires that you use C++, it might be useful. But if you're starting from scratch, consider not using C++. If you use it, you'll end up with some Objective-C++ files and these are a mess to get to work properly, especially if you use nontrivial C++ features (like exceptions) –  K.Steff Jul 7 '12 at 0:55

2 Answers 2

Almost. As in 99%+. But the simplest way to display your Open GL graphic window and to get user input (such as touch events) and OS events would be to use a small thin Objective C wrapper around your C or C++ code. You could instead call the OS via much more verbose usage of the object runtime to get to any needed OS APIs, but why bother?

share|improve this answer

You need a small amount of Objective-C for the application. The rest might be plain C.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.