iPhone OpenGL ES缺少的功能应该在那里 - glBlendFuncSeparate等

时间:2010-05-11 22:30:03

标签: iphone iphone-sdk-3.0 opengl-es

我在iPhone上使用OpenGL ES 1.1,我想使用以下功能:

glBlendFuncSeparate
glBlendColor

与他们相关的常数。这些在早期的iPhone GL实现中并不存在,但根据此页面: http://developer.apple.com/iphone/library/releasenotes/General/iPhone30APIDiffs/index.html

他们应该在3.0+,我正在建设。但我得到了“隐含定义”警告。我需要做些什么才能获得这些功能?

谢谢!

2 个答案:

答案 0 :(得分:1)

这些功能仅为OpenGL ES 2.0定义。 glBlendFuncSeparate的扩展版本的版本为glBlendFuncSeparateOES,但glBlendColor没有等效版本。

答案 1 :(得分:0)

扩展程序包含在glext.h标头文件中。具体而言,#include <OpenGLES/ES1/glext.h>