#ifndef stmesh_view_GL_H #define stmesh_view_GL_H /* stmesh_view_GL.h - model-independent graphics routines for fni_view(1). */ /* Last edited on 2015-10-09 22:51:22 by stolfilocal */ #define _GNU_SOURCE #include #include #include #include #include #include #define stmesh_view_GL_default_window_corner_H 64 #define stmesh_view_GL_default_window_corner_V 64 /* Default screen coordinates of window's top left corner. */ #define stmesh_view_GL_default_window_HSize 800 #define stmesh_view_GL_default_window_VSize 800 /* Default window size. */ void stmesh_view_GL_initialize_libraries(int *argc, char** argv); /* Intializes the GL library. Also parses any X11/glut command line arguments in {argv}, and deletes them. Therefore, it should be called BEFORE the program's own option parsing. */ void stmesh_view_GL_initialize_window ( char *title, void display(void), void reshape(int width, int height), void keyboard(unsigned char key, int x, int y), void passivemouse(int x, int y), void activemouse(int x, int y), void special(int key, int x, int y) ); /* Intializes the GL window attributes with the given title and methods. Assumes that {glutInit} has been called. */ void stmesh_view_GL_start_viewing(void); /* Sets some graphics state parameters and starts the GL main loop. */ #endif