1234567891011121314151617181920212223242526272829303132 |
- #ifndef SHADERRECT_H
- #define SHADERRECT_H
- #include "ShaderBase.h"
- /**
- * @brief 显示矩形RGBA图片
- *
- */
- 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
|