开发者

How co call methods of EAGLView from ES1Renderer?

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜