iDevGames Forums
Xcode OpenGL Application Template - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Xcode OpenGL Application Template (/thread-6048.html)

Pages: 1 2


Xcode OpenGL Application Template - GryphonClaw - Dec 3, 2004 02:26 PM

Hello all,

Just wanted to post a link to my OpenGL application template for Xcode

Xcode OpenGL Template Version 1

here's some info about it:
It uses <projectname>View.m and .h as your main OpenGL View (it even converts spaces to _)

It renames the menu items in the NIB like: The app menu, about, hide, quit and help
appending the project name to all the menu items (except the app menu of course)

and sets the windows title to the project's name

and it even includes a simple rotating cube example Smile

hope you all like it and find it useful Smile

ss2cire

P.S.
Feedback welcome


Xcode OpenGL Application Template - GryphonClaw - Dec 5, 2004 04:04 AM

I've updated the Xcode OpenGL Template

it fixes the following bug:
the project no longer includes the file <<projectname>>View.h in the application package

OpenGL Template Version 2

hope you like it Smile

ss2cire


Xcode OpenGL Application Template - fisk - Dec 5, 2004 04:24 AM

Oh man! that's exactly what I needed!
You saved my day!
Thanks!


Xcode OpenGL Application Template - hangt5 - Dec 13, 2004 11:35 PM

That is seriously awesome.

Is there anyway you could include full screen support. Or tell me how to modify the template so i can do it on my own.


Xcode OpenGL Application Template - geezusfreeek - Dec 14, 2004 12:33 AM

The template is rockin'. Any chance that you will be modifying it later to include full screen etc. as said above?


Xcode OpenGL Application Template - GryphonClaw - Dec 14, 2004 02:11 AM

yeah, i was thinking of doing that, i realized it lacked Full Screen support Smile I'll be sure to post a link when it's ready

thanks for the comments Smile

ss2cire


Xcode OpenGL Application Template - Duane - Dec 14, 2004 05:20 PM

LOL. I was just looking around to figure out how to make an xcode template, so i could make an exact tsame thing, plus one for cocoagl.


Xcode OpenGL Application Template - GryphonClaw - Dec 14, 2004 05:28 PM

you're in luck Smile this template use Cocoa for the windowing system and such (events ect) i hear creating your own event loop is scary and hard, so i just used cocoa's Smile hope you like it, im working on getting fullscreen support Smile

check back soon


Xcode OpenGL Application Template - Snof - Dec 14, 2004 06:10 PM

While you're working on adding fullscreen support, you might consider making it so minimization into the dock works correctly. Right now the window turns all white when you minimize it. I know there was a thread at some point about how to do that. Thanks for making this, it's nice to be able to start something without going through all the hassle of setting everything up.


Xcode OpenGL Application Template - WhatMeWorry - Dec 14, 2004 09:32 PM

Why doesn't Apple post something like this. I think they should
have a "Best Practices" or something on their web site. They control
so much of the hardware/software that why not jump start stuff
like this.

Hey, maybe this could be an area iDevGames?


Xcode OpenGL Application Template - hangt5 - Dec 14, 2004 09:56 PM

How many versions of an openGL template do you need?


Xcode OpenGL Application Template - GryphonClaw - Dec 14, 2004 10:33 PM

well.. one, i just put the version numbers so people know that it's been updated and which one they have, I'll add full screen, which will make it version 3 and i think that will be it

never know tho Smile


Xcode OpenGL Application Template - ThemsAllTook - Dec 14, 2004 10:59 PM

hangt5 Wrote:How many versions of an openGL template do you need?

AGL, CGL, NSOpenGL, SDL_OpenGL, GLUT, ...

- Alex Diener


Xcode OpenGL Application Template - hangt5 - Dec 15, 2004 12:19 AM

ThemsAllTook Wrote:AGL, CGL, NSOpenGL, SDL_OpenGL, GLUT, ...

- Alex Diener

oh, those Sneaky


Xcode OpenGL Application Template - Duane - Dec 15, 2004 06:19 PM

hmm...
i can add a screenshot action, if it is in obj-c I don't have xcode with me, so I can't try it out.