简体   繁体   English

iPhone OpenGLES应用无法渲染

[英]iPhone OpenGLES App not Rendering

I am attempting to setup a simple OpenGLES project that doesn't use the interface builder and has as minimal code as possible. 我正在尝试建立一个不使用接口构建器并且具有尽可能少的代码的简单OpenGLES项目。 From what I can tell, the code that I have put together should work but it doesn't. 据我所知,我编写的代码应该可以,但不能。 I am basically at a loss now as to why it's not working. 我现在对为什么它不起作用感到茫然。

Here's what I did: - Remove nib file - Remove reference in the plist file - Changed UIApplicationMain 4th parameter to @"AppDelegate" - Setup my files accordingly... 这是我的工作:-删除笔尖文件-删除plist文件中的引用-将UIApplicationMain第4个参数更改为@“ AppDelegate”-相应地设置我的文件...

Full code is here: http://pastebin.com/6DawjP0b 完整代码在这里: http : //pastebin.com/6DawjP0b

Thanks! 谢谢!

Try changing your [Window makeKeyWindow]; 尝试更改您的[Window makeKeyWindow]; to [Window makeKeyAndVisible]; [Window makeKeyAndVisible]; to ensure that the window is visible. 确保该窗口可见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM