-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglut_18.h
More file actions
35 lines (27 loc) · 763 Bytes
/
glut_18.h
File metadata and controls
35 lines (27 loc) · 763 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
#ifndef GLUT_18_H
#define GLUT_18_H
#include <string>
#include <utility>
#include <vector>
#include "engine_common.h"
typedef std::pair<char, std::string> rule_t;
typedef std::vector<rule_t> rules_t;
struct Engine_OpenGL_GLUT_18_CBData
{
// camera
struct Engine_GL_Camera camera;
// mouse
float xangle;
float xDeltaAngle;
int xOrigin;
// L-system
rules_t rules;
std::string sentence;
float angle;
float length;
};
// GLUT routines
void engine_glut_18_mouse_button (int, int, int, int);
void engine_glut_18_reshape (int, int);
void engine_glut_18_draw (void);
#endif // GLUT_4_H