Printable Version of Topic

Click here to view this topic in its original format

O'Reilly Forums _ iPhone Open Application Development _ Opengles

Posted by: kampfgnu May 22 2009, 04:58 AM

hello,

i successfully compiled the toolchain and got the samples to run on iphone.
now i wanna create an opengles app, but #include <OpenGLES/gl.h> gives me an error...
are there any samples for opengles apps, or what do i have to do to let the toolchain find my includes?

greets

Posted by: kampfgnu May 24 2009, 05:33 AM

ok i found out that i had to include something in my makefile.
but now i ran into another problem:
i am trying to setup an opengl view manually (without xib file)

CODE
CAEAGLLayer *eaglLayer = (CAEAGLLayer*) self.layer;

this line seems not to work.
i get this error:
CODE
error: request for member 'layer' in something not a structure or union


anyone?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)