-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.h
69 lines (50 loc) · 2.1 KB
/
Main.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// ========================================================================= //
// Authors: Matthias Borner //
// mailto:[email protected] //
// //
// GRIS - Graphisch Interaktive Systeme //
// Technische Universität Darmstadt //
// Fraunhoferstrasse 5 //
// D-64283 Darmstadt, Germany //
// //
// Creation Date: 29.10.2013 //
// Content: Simple and extendable openGL program offering //
// * basic navigation and basic pipeline rendering //
// ========================================================================= //
#include <GL/glut.h>
#include "HalfEdgeDS.h" // our half edge data structure
// ===================
// === GLOBAL DATA ===
// ===================
HalfEdgeDS heDS; // instance of our data structure
HalfEdge* activeHE; // the currently active half edge
HalfEdge* selectedHE; // the selected half edge (for EulerOP usage)
// do not modify data below unless you know what you do
// camera Information
float transX, transY, transZ;
float angleX, angleY;
// mouse information
int mouseX, mouseY, mouseButton;
float mouseSensitivy;
// ==============
// === BASICS ===
// ==============
int main(int argc, char **argv);
void setDefaults();
void initializeGL();
void reshape(GLint width, GLint height);
// =================
// === RENDERING ===
// =================
void renderCS();
void renderScene(void);
// =================
// === CALLBACKS ===
// =================
void keyPressed(unsigned char key, int x, int y);
void mousePressed(int button, int state, int x, int y);
void mouseMoved(int x, int y);
// ===============
// === VARIOUS ===
// ===============
void coutHelp();