35 lines
453 B
C++
35 lines
453 B
C++
#include "MyApplication.h"
|
|
|
|
MyApplication::MyApplication(const char* class_name, HINSTANCE h_instance)
|
|
: Application(class_name, h_instance)
|
|
{
|
|
}
|
|
|
|
|
|
MyApplication::~MyApplication()
|
|
{
|
|
}
|
|
|
|
bool MyApplication::init()
|
|
{
|
|
m_scene.use();
|
|
return true;
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
|