glviewvol

view src/viewer.h @ 15:2a67ea257ac0

makefile fixes for macosx
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 06 Feb 2015 23:47:28 +0200
parents 73edd1b7c2da
children
line source
1 /*
2 glviewvol is an OpenGL 3D volume data viewer
3 Copyright (C) 2014 John Tsiombikas <nuclear@member.fsf.org>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef VIEWER_H_
19 #define VIEWER_H_
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 int init();
26 void cleanup();
28 void ev_display();
29 void ev_reshape(int x, int y);
30 void ev_keyboard(int key, int press, int x, int y);
31 void ev_mouse_button(int bn, int press, int x, int y);
32 void ev_mouse_motion(int x, int y);
34 // functions provided by the frontend
35 void swap_buffers();
36 void redisplay();
37 void quit();
38 void get_window_size(int *xsz, int *ysz);
39 unsigned int get_modifiers();
41 #ifdef __cplusplus
42 }
43 #endif
45 #endif // VIEWER_H_