CSEngine
Loading...
Searching...
No Matches
MainProc.cpp
1#include "MainProc.h"
2#include "EngineCore.h"
3
4using namespace CSE;
5
6MainProc::MainProc() = default;
7
8
9MainProc::~MainProc() {
10 Exterminate();
11}
12
13
14void MainProc::Init(GLuint width, GLuint height) {
15
16 CORE->Init(width, height);
17}
18
19
20void MainProc::Update(float elapsedTime) {
21 CORE->Update(elapsedTime);
22 CORE->LateUpdate(elapsedTime);
23}
24
25
26void MainProc::Render(float elapsedTime) const {
27 CORE->Render();
28}
29
30
31void MainProc::Exterminate() {
32 CORE->Exterminate();
33 CORE->delInstance();
34}
35
36void MainProc::ResizeWindow(GLuint width, GLuint height) const {
37 CORE->ResizeWindow(width, height);
38}
39
40void MainProc::GenerateCores() {
41 CORE->GenerateCores();
42}