-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
33 lines (25 loc) · 920 Bytes
/
main.cpp
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
#include "kipod.h"
#include "kipod/src/modules/meshmodels/meshmodel_module.h"
#include "src/quasicrystals_module.h"
#include "src/quasicrystals_examples.h"
extern unsigned int GLOBAL_SCR_WIDTH;
extern unsigned int GLOBAL_SCR_HEIGHT;
using namespace kipod;
using namespace quacry;
using namespace kipod::MeshModels;
int main( int argc, char **argv )
{
// int width = 1024, height = 768;
//int width = 512, height = 384;
int width = 600, height = 400;
kipod::Application kipod(width, height);
kipod.Init();
kipod.Add(QuasiCrystalsModule("Quasicrystals", width, height));
auto quacry = kipod.GetModule("Quasicrystals");
auto scene = static_cast<QuasiCrystalsModule*>(quacry)->GetScene();
auto menu = static_cast<QuasiCrystalsModule*>(quacry)->GetScene();
scene->SetFixedRatio(false);
kipod.Run();
kipod.ShutDown();
return 0;
}