glviewvol

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/dicomview.cc	Sat Dec 27 02:35:58 2014 +0200
     1.3 @@ -0,0 +1,33 @@
     1.4 +#include "opengl.h"
     1.5 +#include "dicomview.h"
     1.6 +
     1.7 +static float cam_theta, cam_phi, cam_dist = 6;
     1.8 +
     1.9 +extern "C" {
    1.10 +
    1.11 +int init()
    1.12 +{
    1.13 +}
    1.14 +
    1.15 +void cleanup()
    1.16 +{
    1.17 +}
    1.18 +
    1.19 +void ev_display()
    1.20 +{
    1.21 +	glClear(GL_COLOR_BUFFER_BIT);
    1.22 +}
    1.23 +
    1.24 +void ev_reshape(int x, int y)
    1.25 +{
    1.26 +	win_width = x;
    1.27 +	win_height = y;
    1.28 +
    1.29 +	glViweport(0, 0, x, y);
    1.30 +}
    1.31 +
    1.32 +void ev_keyboard(int key, int press, int x, int y);
    1.33 +void ev_mouse_button(int bn, int press, int x, int y);
    1.34 +void ev_mouse_motion(int x, int y);
    1.35 +
    1.36 +}	// extern "C"