美文网首页
GLCameraRipple 420v纹理着色器

GLCameraRipple 420v纹理着色器

作者: 景彧 | 来源:发表于2017-10-12 10:24 被阅读64次

    官方GLCameraRipple demo下载到本地Xcode无法编译通过,在编译器中报以下错:

    /Users/apple/Downloads/GLCameraRipple/GLCameraRipple/RippleViewController.m:242:56: error: use of undeclared identifier 'GL_RED_EXT'
                                                           GL_RED_EXT,
                                                           ^
    /Users/apple/Downloads/GLCameraRipple/GLCameraRipple/RippleViewController.m:245:56: error: use of undeclared identifier 'GL_RED_EXT'
                                                           GL_RED_EXT,
                                                           ^
    2 errors generated.
    
    image.png

    解决办法是在RippleViewController.m文件中导入#include <OpenGLES/ES2/glext.h>头文件即可。

    相关文章

      网友评论

          本文标题:GLCameraRipple 420v纹理着色器

          本文链接:https://www.haomeiwen.com/subject/xysnyxtx.html