您尚未登录。

楼主 # 2024-08-04 12:26:46

memory
会员
注册时间: 2021-08-11
已发帖子: 421
积分: 397

OpenGL ES2 不支持 glGenVertexArrays, glBindVertexArray吗?

class GLWidget : public QOpenGLWidget, protected QOpenGLFunctions_ES2

{
    Q_OBJECT

public:
    explicit GLWidget(QWidget *parent = nullptr);
    ~GLWidget();

protected:
    void initializeGL() override;
    void resizeGL(int w, int h) override;
    void paintGL() override;

private:
    bool m_initialized;
    GLuint VBO, VAO;
};
    glGenVertexArrays(1, &VAO);

    glBindVertexArray(VAO);

QQ截图20240804122618.png

离线

楼主 #1 2024-08-04 12:33:32

memory
会员
注册时间: 2021-08-11
已发帖子: 421
积分: 397

Re: OpenGL ES2 不支持 glGenVertexArrays, glBindVertexArray吗?

查了一下,要OpenGL ES3.x 才支持 glGenVertexArrays, glBindVertexArray

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn