version 1.7 | | version 1.8 |
---|
| | |
* Definitions for graphics lib. | | * Definitions for graphics lib. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.8 1999/10/07 21:15:58 donut |
| | * ogl updates (new gltexture struct, and new font handling) |
| | * |
* Revision 1.7 1999/09/30 23:02:27 donut | | * Revision 1.7 1999/09/30 23:02:27 donut |
* opengl direct support for ingame and normal menus, fonts as textures, and automap support | | * opengl direct support for ingame and normal menus, fonts as textures, and automap support |
* | | * |
| | |
int iMagic; | | int iMagic; |
#endif | | #endif |
#ifdef OGL | | #ifdef OGL |
int gltexture; | | struct _ogl_texture *gltexture; |
float glu,glv; | | |
#endif | | #endif |
} grs_bitmap; | | } grs_bitmap; |
| | |
| | |
old_grs_font *oldfont; | | old_grs_font *oldfont; |
#ifdef OGL | | #ifdef OGL |
grs_bitmap * ft_bitmaps; | | grs_bitmap * ft_bitmaps; |
| | grs_bitmap ft_parent_bitmap; |
#endif | | #endif |
} grs_font; | | } grs_font; |
| | |
| | |
| | |
#ifdef OGL | | #ifdef OGL |
#define BM_OGL 5 | | #define BM_OGL 5 |
#include "ogl_init.h" | | |
#endif | | #endif |
| | |
////========================================================================= | | ////========================================================================= |
| | |
#endif //!_GR_H | | #endif //!_GR_H |
| | |
//currently SDL is the only thing that supports toggling fullscreen. otherwise add other checks to the #if -MPM | | //currently SDL is the only thing that supports toggling fullscreen. otherwise add other checks to the #if -MPM |
#if (defined(SDL_VIDEO) || defined(GLX_VIDEO)) | | #if (defined(SDL_VIDEO) || defined(OGL)) |
#define GR_SUPPORTS_FULLSCREEN_TOGGLE | | #define GR_SUPPORTS_FULLSCREEN_TOGGLE |
int gr_check_fullscreen(void);//must return 0 if windowed, 1 if fullscreen | | int gr_check_fullscreen(void);//must return 0 if windowed, 1 if fullscreen |
int gr_toggle_fullscreen(void);//returns state after toggling (ie, same as if you had called check_fullscreen immediatly after) | | int gr_toggle_fullscreen(void);//returns state after toggling (ie, same as if you had called check_fullscreen immediatly after) |