#include "MyObjectOrientedScene.h" MyObjectOrientedScene::MyObjectOrientedScene() : m_batch(m_triangle) { } MyObjectOrientedScene::~MyObjectOrientedScene() { } void MyObjectOrientedScene::init() { m_batch.init(); } void MyObjectOrientedScene::use() { glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); } void MyObjectOrientedScene::unuse() { } void MyObjectOrientedScene::update(float delta_time, clock_t clock) { } void MyObjectOrientedScene::render() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); m_shader_program.use(); m_batch.render(); }