-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglut_16.h
70 lines (57 loc) · 1.85 KB
/
glut_16.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
70
#ifndef GLUT_16_H
#define GLUT_16_H
#if defined (GLM_SUPPORT)
#include "glm/glm.hpp"
#endif // GLM_SUPPORT
#include "common_ui_gtk_common.h"
#include "engine_common.h"
struct Engine_OpenGL_GLUT_16_CBData
{
bool wireframe;
bool color;
// camera
struct Engine_GL_Camera camera;
// mouse
bool spinning;
float xangle, yangle;
float xdeltaAngle, ydeltaAngle;
int xOrigin, yOrigin;
// shape parameters
int total;
int radius;
#if defined (GLM_SUPPORT)
glm::vec3* globe;
#endif // GLM_SUPPORT
float m;
float n1, n2, n3;
float a, b;
};
// GLUT routines
void engine_glut_16_key_special (int, int, int);
void engine_glut_16_menu (int);
void engine_glut_16_mouse_button (int, int, int, int);
void engine_glut_16_mouse_move (int, int);
void engine_glut_16_timer (int);
void engine_glut_16_draw (void);
//////////////////////////////////////////
struct Engine_UI_GTK_16_CBData
: Common_UI_GTK_CBData
{
struct Engine_OpenGL_GLUT_16_CBData* GLUT_CBData;
};
// GTK idle routines
gboolean idle_initialize_UI_16_cb (gpointer);
gboolean idle_finalize_UI_16_cb (gpointer);
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
G_MODULE_EXPORT void scale_m_value_changed_cb (GtkRange*, gpointer);
G_MODULE_EXPORT void scale_n1_value_changed_cb (GtkRange*, gpointer);
G_MODULE_EXPORT void scale_n2_value_changed_cb (GtkRange*, gpointer);
G_MODULE_EXPORT void scale_n3_value_changed_cb (GtkRange*, gpointer);
G_MODULE_EXPORT void button_reset_16_clicked_cb (GtkButton*, gpointer);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif // GLUT_16_H