40617c8953
to specify the batch pipeline specified at StackOverflow See https://stackoverflow.com/questions/8923174/opengl-vao-best-practices#8923298
35 lines
456 B
C++
35 lines
456 B
C++
#include "MyApplication.h"
|
|
|
|
MyApplication::MyApplication(const char* class_name, HINSTANCE h_instance)
|
|
: Application(class_name, h_instance)
|
|
{
|
|
}
|
|
|
|
|
|
MyApplication::~MyApplication()
|
|
{
|
|
}
|
|
|
|
void MyApplication::init()
|
|
{
|
|
m_scene.init();
|
|
m_scene.use();
|
|
}
|
|
|
|
void MyApplication::update(float delta_time, clock_t clock)
|
|
{
|
|
m_scene.update(delta_time, clock);
|
|
}
|
|
|
|
void MyApplication::render()
|
|
{
|
|
m_scene.render();
|
|
}
|
|
|
|
void MyApplication::close()
|
|
{
|
|
m_scene.unuse();
|
|
}
|
|
|
|
|