#ifndef __GNOMEGR_H #define __GNOMEGR_H /* * Description: * This module renders a binary bitmap * on screen using OpenGl and the GLUT libraries. * * To use this module, you should: * call InitGnomeGr to initialize the system * Call Render whenever you wish to update the screen. * * Linux: link with the glut and opengl libraries -lglut -lGLU -lGL * Note that this works only on Linux machines in classroom * 004 in Schreiber. */ #ifdef __cplusplus extern "C" { #endif #include "gnomedefs.h" typedef void (*t_program_start)(); /* * initialization of the GnomeGr library * Input: * canvas_ptr - pointer to initialized canvas data structure * start - a function that will be called immediately after * the graphics is initialized */ void InitGr( const GnomeBitmap *canvas_ptr, t_program_start start); /* * This routine is called after every command line in Single Step mode, * to draw the canvas bitmap on the screen. * * Input: * canvas_ptr - pointer to the canvas data structure */ void Render(const GnomeBitmap *canvas_ptr); #ifdef __cplusplus } #endif #endif /* __GNOMEGR_H */