开发者

iPhone OpenGL ES missing functions should be there - glBlendFuncSeparate etc

I'm using OpenGL ES 1.1 on the iPhone, and I'd like to use the following functions:

glBlendFuncSeparate
glBlendColor

With their related constants. These didn't exist in early iPhone GL implementations, but according to this page: http://developer.apple.com/iphone/library/releasenotes/General/iPhone30APIDiffs/index.html

they should be there in 3.0+, which I'm building for. But I'm getting "implicit definition" 开发者_如何学Pythonwarnings. What do I need to do to get those functions?

Thanks!


These functions are only defined for OpenGL ES 2.0. glBlendFuncSeparate does have a 1.1 extension version as glBlendFuncSeparateOES, but there is no equivalent for glBlendColor.


Extensions are included in the glext.h header files. Specifically, #include <OpenGLES/ES1/glext.h>

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜