#pragma once #include #include class Triangle { public: Triangle(GLuint shaderProgram); void render(float time); ~Triangle(); private: GLuint _vbo; GLuint _vao; GLuint _shaderProgram; std::vector _vertices = { -0.5, -0.5, 0.0, // left 0.5, -0.5, 0.0, // right 0.0, 0.5, 0.0 // top }; };