0

How do you code in OpenGL on Xcode without going into the app-templates ?

genpfault
  • 51,148
  • 11
  • 85
  • 139
user1542660
  • 1,299
  • 2
  • 9
  • 8
  • App templates? Do you mean by choosing Cocoa Application etc.? You have to create a new project using templates, unless you want to make it using C. If you wanna use C, then just choose command-line tool. – TheAmateurProgrammer Jan 23 '13 at 07:37

2 Answers2

1

Look at OpenGL ES 2.0 Object Picking on iOS

It has some info and gl setup examples. Still it would be good to get gl template from apple examples.

Community
  • 1
  • 1
Cynichniy Bandera
  • 5,991
  • 2
  • 29
  • 33
  • thank you all for your help - I'm just beginning openGL, I'm taking a class this semester. I don't know much of the language yet. What I want to know is "how" I code, ie, where do I write openGL code. Suppose all I wanted to do was draw a single point, where would I write the code for that, and what library(ies) would I need to import ? – user1542660 Jan 24 '13 at 14:34
  • This requires a bit of storyboard work and also coding. Let me know your email, I will send you some working proto with bunch of very common gl things (drawing objects, picking, etc) – Cynichniy Bandera Jan 24 '13 at 17:00
  • btw, do you need it for osx or ios? – Cynichniy Bandera Jan 24 '13 at 17:00
1

Keep in mind that Mac OS X supports OpenGL only up to 3.2, so you'd be limited to GLSL version 1.3.

Alexander
  • 8,117
  • 1
  • 35
  • 46