glviewvol

view src/dicomview.cc @ 0:7bdf40403b9c

dicom viewer project underway
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 27 Dec 2014 02:35:58 +0200
parents
children cc9e0d8590e2
line source
1 #include "opengl.h"
2 #include "dicomview.h"
4 static float cam_theta, cam_phi, cam_dist = 6;
6 extern "C" {
8 int init()
9 {
10 }
12 void cleanup()
13 {
14 }
16 void ev_display()
17 {
18 glClear(GL_COLOR_BUFFER_BIT);
19 }
21 void ev_reshape(int x, int y)
22 {
23 win_width = x;
24 win_height = y;
26 glViweport(0, 0, x, y);
27 }
29 void ev_keyboard(int key, int press, int x, int y);
30 void ev_mouse_button(int bn, int press, int x, int y);
31 void ev_mouse_motion(int x, int y);
33 } // extern "C"