ios - 函数 glGenFramebuffers 的隐式声明

标签 ios opengl-es

刚刚开始使用 Xcode 和 Open GL,我正在了解 我的 GL View 类中的“函数 glGenFramebuffers 的隐式声明”。我正在导入

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import <OpenGLES/ES1/gl.h>

我也尝试过

#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>

并清理所有目标,但警告仍然存在!这是什么意思?我必须导入什么才能让它消失?

最佳答案

您需要导入OpenGLES/ES2/gl.hglGenFramebuffers功能在OpenGL ES 1中不可用。如果您确实想使用OpenGL ES 1您需要使用 glGenFramebuffersOES 它是 OES_framebuffer_object 扩展的一部分。

关于ios - 函数 glGenFramebuffers 的隐式声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14925309/

相关文章:

ios - CGImageCreateWithImageInRect 区域不正确?

ios - 无法使用 NSCoding 对 MKPolyline 或 MKPolygon 进行编码

c# - OpenGL ES 2.0/MonoTouch : Texture is colorized red

iphone - 是否可以将多个纹理映射到 openGL ES 中的一个形状上?

ios - 推送后保存 objectAtIndex 时 NSFetchedResultsController 崩溃

ios - 使用 PNReachability 类检查互联网连接

ios - RealmPlugin (Swift) v0.92.2 导致 Shell 脚本调用错误

java - 如何开始为 Android 应用程序(例如使用 OpenGL)创建 3D(游戏)GUI?

android - 使用六边形网格提高绘图性能

android - 在 OpenCL 内核中读取 GL_UNSIGNED_BYTE OpenGL texture2D (android)