summaryrefslogtreecommitdiff
path: root/src/glut/mini/callback.c
blob: d4e3101cc08d2315eb89971354a0646b39f05593 (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
 * Mesa 3-D graphics library
 * Version:  3.4
 * Copyright (C) 1995-1998  Brian Paul
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*
 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
 *
 *  Copyright (C) 2002 - Borca Daniel
 *  Email : dborca@yahoo.com
 *  Web   : http://www.geocities.com/dborca
 */


#include "GL/glut.h"
#include "internal.h"


void APIENTRY glutDisplayFunc (void (GLUTCALLBACK *func) (void))
{
 display_func = func;
}


void APIENTRY glutReshapeFunc (void (GLUTCALLBACK *func) (int width, int height))
{
 reshape_func = func;
}


void APIENTRY glutKeyboardFunc (void (GLUTCALLBACK *func) (unsigned char key, int x, int y))
{
 keyboard_func = func;
}


void APIENTRY glutMouseFunc (void (GLUTCALLBACK *func) (int button, int state, int x, int y))
{
 mouse_func = func;
}


void APIENTRY glutMotionFunc (void (GLUTCALLBACK *func) (int x, int y))
{
 motion_func = func;
}


void APIENTRY glutPassiveMotionFunc (void (GLUTCALLBACK *func) (int x, int y))
{
 passive_motion_func = func;
}


void APIENTRY glutEntryFunc (void (GLUTCALLBACK *func) (int state))
{
 entry_func = func;
}


void APIENTRY glutVisibilityFunc (void (GLUTCALLBACK *func) (int state))
{
 visibility_func = func;
}


void APIENTRY glutIdleFunc (void (GLUTCALLBACK *func) (void))
{
 idle_func = func;
}


void APIENTRY glutTimerFunc (unsigned int millis, void (GLUTCALLBACK *func) (int value), int value)
{
}


void APIENTRY glutMenuStateFunc (void (GLUTCALLBACK *func) (int state))
{
 menu_state_func = func;
}


void APIENTRY glutSpecialFunc (void (GLUTCALLBACK *func) (int key, int x, int y))
{
 special_func = func;
}


void APIENTRY glutSpaceballMotionFunc (void (GLUTCALLBACK *func) (int x, int y, int z))
{
}


void APIENTRY glutSpaceballRotateFunc (void (GLUTCALLBACK *func) (int x, int y, int z))
{
}


void APIENTRY glutSpaceballButtonFunc (void (GLUTCALLBACK *func) (int button, int state))
{
}


void APIENTRY glutButtonBoxFunc (void (GLUTCALLBACK *func) (int button, int state))
{
}


void APIENTRY glutDialsFunc (void (GLUTCALLBACK *func) (int dial, int value))
{
}


void APIENTRY glutTabletMotionFunc (void (GLUTCALLBACK *func) (int x, int y))
{
}


void APIENTRY glutTabletButtonFunc (void (GLUTCALLBACK *func) (int button, int state, int x, int y))
{
}


void APIENTRY glutMenuStatusFunc (void (GLUTCALLBACK *func) (int status, int x, int y))
{
}


void APIENTRY glutOverlayDisplayFunc (void (GLUTCALLBACK *func) (void))
{
}


void APIENTRY glutWindowStatusFunc (void (GLUTCALLBACK *func) (int state))
{
}