2018-09-04 19:25:54 +00:00
|
|
|
#include "MySimpleScene.h"
|
|
|
|
|
|
|
|
MySimpleScene::MySimpleScene()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MySimpleScene::~MySimpleScene()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-09-05 15:47:09 +00:00
|
|
|
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());
|
2018-09-05 15:47:09 +00:00
|
|
|
glDrawArrays(GL_TRIANGLES, 0, 3);
|
2018-09-04 19:25:54 +00:00
|
|
|
}
|