开发者

How co call methods of EAGLView from ES1Renderer?

开发者 https://www.devze.com 2023-01-28 06:00 出处:网络
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 enli

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

精彩评论

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

关注公众号