iPhone Open Application Development
iPhone Open Application Development, Second Edition Write Native Applications Using the Open Source Tool Chain By Jonathan Zdziarski
October 2008
Pages: 268


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Opengles
kampfgnu
post May 22 2009, 04:58 AM
Post #1


New Member
*

Group: Members
Posts: 2
Joined: 22-May 09
Member No.: 18,265



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
Go to the top of the page
 
+Quote Post
kampfgnu
post May 24 2009, 05:33 AM
Post #2


New Member
*

Group: Members
Posts: 2
Joined: 22-May 09
Member No.: 18,265



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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 7th November 2009 - 04:39 PM