Using the standard OpenGL ES iPad pattern we get such 'structure'. I'开发者_开发百科ve read some about delegating, protocols, but still got no direct answer for this particular purpose. Please enlighten me.
Why would I need this? Well all the action goes on in ES1Renderer and I want to [EAGLView setUserInteractionEnabled:true];
for example, which gives me:
'EAGLView' may not respond to '+setUserInteractionEnabled:'
You're sending a message to a class, not an instance. You'd need an object of type EAGLview
to send the setUserInteractionEnabled:
message to.
Like:
EAGLView *myView;
[myView setUserInteractionEnabled:true];
精彩评论