forked from uzunov-dimitar/TeamRocketGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
40 lines (29 loc) · 799 Bytes
/
Main.cpp
File metadata and controls
40 lines (29 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*****************************************************************************************
* Desc: Tutorial a) 01 Installing
*****************************************************************************************/
#include "CIndieLib.h"
/*
==================
Main
==================
*/
int IndieLib()
{
// ----- IndieLib intialization -----
CIndieLib *mI = CIndieLib::instance();
if (!mI->init()) return 0;
// ----- Main Loop -----
while (!mI->_input->onKeyPress(IND_ESCAPE) && !mI->_input->quit())
{
// ----- Input Update ----
mI->_input->update();
// -------- Render -------
mI->_render->clearViewPort(60, 60, 60);
mI->_render->beginScene();
mI->_render->endScene();
//mI->_render->showFpsInWindowTitle();
}
// ----- Indielib End -----
mI->end();
return 0;
}