charcoal/OpenGLEngine/MySimpleScene.cpp

36 lines
456 B
C++
Raw Normal View History

2018-09-04 19:25:54 +00:00
#include "MySimpleScene.h"
MySimpleScene::MySimpleScene()
{
}
MySimpleScene::~MySimpleScene()
{
}
void MySimpleScene::init()
{
m_shader_program.init();
m_triangle.init();
}
2018-09-04 19:25:54 +00:00
void MySimpleScene::use()
{
}
void MySimpleScene::unuse()
{
}
void MySimpleScene::update(float delta_time, clock_t clock)
{
}
void MySimpleScene::render()
{
2018-09-05 06:49:02 +00:00
m_shader_program.use();
glBindBuffer(GL_ARRAY_BUFFER, m_triangle.get_vbo());
glDrawArrays(GL_TRIANGLES, 0, 3);
2018-09-04 19:25:54 +00:00
}