Cleaned up MySimpleScene

This commit is contained in:
elipzer 2018-09-05 16:29:41 -04:00
parent b494f68d0c
commit 6db2ba4f21
2 changed files with 0 additions and 5 deletions

View File

@ -1,7 +1,6 @@
#include "MySimpleScene.h" #include "MySimpleScene.h"
MySimpleScene::MySimpleScene() MySimpleScene::MySimpleScene()
//: m_batch(m_triangle)
{ {
} }
@ -46,8 +45,6 @@ void MySimpleScene::update(float delta_time, clock_t clock)
void MySimpleScene::render() void MySimpleScene::render()
{ {
//m_shader_program.use();
//m_batch.render();
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
m_shader_program.use(); m_shader_program.use();
glBindVertexArray(m_vao); glBindVertexArray(m_vao);

View File

@ -27,9 +27,7 @@ public:
void render() override; void render() override;
private: private:
//MyBatch m_batch;
MyShaderProgram m_shader_program; MyShaderProgram m_shader_program;
//MyTriangle m_triangle;
GLuint m_vbo; GLuint m_vbo;
GLuint m_vao; GLuint m_vao;