00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __FRAMEWK_H__
00010 #define __FRAMEWK_H__
00011
00012 #include <assert.h>
00013
00014 #include <GL/glut.h>
00015
00016 #include "../image/imagergba.h"
00017
00019
00020
00021
00023 extern void keyboardCB(unsigned char key, float x, float y);
00024
00026 extern void specialCB(int key, float x, float y);
00027
00029 extern void mouseCB(int button, int state, float x, float y);
00030
00032 extern void motionCB(float x, float y);
00033
00035 extern void idleCB(void);
00036
00038
00039
00040
00041
00043 extern void fwkInit(int *argc, const char *argv[]);
00044
00046 extern void fwkMainLoop(void);
00047
00048
00050 extern void fwkSetDisplayImage(const void *img);
00051
00053 extern float fwkGetDisplayZoom(void);
00054
00056 extern void fwkSetDisplayZoom(float zoom);
00057
00058
00060 extern void fwkPostRedisplay(void);
00061
00063
00064 #endif