123456789101112131415161718192021222324 |
- #ifndef SHADERRECT_H
- #define SHADERRECT_H
- #include "ShaderBase.h"
- class ShaderRect : public ShaderBase
- {
- public:
- ShaderRect();
- ~ShaderRect();
- /* 初始化形状 */
- GLuint initShape() override;
- /* 绘制图形 */
- void drawShape() override;
- private:
- GLuint m_VAO = 0; // 顶点数组对象的ID
- GLuint m_VBO = 0; // 顶点缓冲对象的ID
- GLuint m_EBO = 0; // 索引缓冲对象的ID
- };
- #endif // SHADERRECT_H
|