Cleaned up MySimpleScene
This commit is contained in:
parent
b494f68d0c
commit
6db2ba4f21
@ -1,7 +1,6 @@
|
||||
#include "MySimpleScene.h"
|
||||
|
||||
MySimpleScene::MySimpleScene()
|
||||
//: m_batch(m_triangle)
|
||||
{
|
||||
}
|
||||
|
||||
@ -46,8 +45,6 @@ void MySimpleScene::update(float delta_time, clock_t clock)
|
||||
|
||||
void MySimpleScene::render()
|
||||
{
|
||||
//m_shader_program.use();
|
||||
//m_batch.render();
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
m_shader_program.use();
|
||||
glBindVertexArray(m_vao);
|
||||
|
@ -27,9 +27,7 @@ public:
|
||||
void render() override;
|
||||
|
||||
private:
|
||||
//MyBatch m_batch;
|
||||
MyShaderProgram m_shader_program;
|
||||
//MyTriangle m_triangle;
|
||||
|
||||
GLuint m_vbo;
|
||||
GLuint m_vao;
|
||||
|
Loading…
Reference in New Issue
Block a user