-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMain.cpp
More file actions
36 lines (27 loc) · 666 Bytes
/
Copy pathMain.cpp
File metadata and controls
36 lines (27 loc) · 666 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
#include "MinGL.h"
#include "Example.h"
#include <iostream>
int main()
{
// Window sizes
const int width = 800;
const int height = 600;
MinGL minGL;
if (!minGL.init(width, height, "MinGL"))
return -1;
while (!minGL.windowShouldClose())
{
minGL.pollEvents();
minGL.processInput();
/*** Write Your Code Here ***/
// First Example draws a Cube on the screen
drawCube(minGL);
// Second Example demonstrates how to use basic shape drawing functions
// comment the drawCube(MinGL) and uncomment below line to see the results
// drawShapes(minGL);
minGL.flush(0.18f, 0.32f, 0.39f, 1.00f);
}
// Clean up
minGL.shutdown();
return 0;
}