iPhone OpenGL ES missing functions should be there - glBlendFuncSeparate etc

天大地大妈咪最大 提交于 2019-12-24 09:39:23

问题


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" warnings. What do I need to do to get those functions?

Thanks!


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2814881/iphone-opengl-es-missing-functions-should-be-there-glblendfuncseparate-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!