Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/home/landauf/painter/miniproject/framewk/framewk.h

Go to the documentation of this file.
00001 //
00002 //    Title: framewk.h
00003 //  Created: Tue Oct 16 09:53:43 2001
00004 //   Author: Tim Weyrich <weyrich@inf.ethz.ch>
00005 //
00006 //  copyright (c) 2001--2003, Computer Graphics Laboratory, ETH Zuerich
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 // the following functions must be supported by painter.cc
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 // the following functions are exported by libframewk.a
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

Generated on Mon Jan 30 09:13:02 2006 for Painter Framework by doxygen1.2.18