version 1.3 | | version 1.4 |
---|
| | |
extern int gl_initialized; | | extern int gl_initialized; |
| | |
//platform specific funcs | | //platform specific funcs |
inline void ogl_swap_buffers(void); | | //MSVC seems to have problems with inline funcs not being found during linking |
| | #ifndef _MSC_VER |
| | inline |
| | #endif |
| | void ogl_swap_buffers(void); |
int ogl_init_window(int x, int y);//create a window/switch modes/etc | | int ogl_init_window(int x, int y);//create a window/switch modes/etc |
void ogl_destroy_window(void);//destroy window/etc | | void ogl_destroy_window(void);//destroy window/etc |
void ogl_init(void);//one time initialization | | void ogl_init(void);//one time initialization |
| | |
| | |
| | |
//whee | | //whee |
inline GLfloat PAL2Tr(int c); | | #define PAL2Tr(c) ((gr_current_pal[c*3]+gr_palette_gamma)/63.0) |
inline GLfloat PAL2Tg(int c); | | #define PAL2Tg(c) ((gr_current_pal[c*3+1]+gr_palette_gamma)/63.0) |
inline GLfloat PAL2Tb(int c); | | #define PAL2Tb(c) ((gr_current_pal[c*3+2]+gr_palette_gamma)/63.0) |
| | //inline GLfloat PAL2Tr(int c); |
| | //inline GLfloat PAL2Tg(int c); |
| | //inline GLfloat PAL2Tb(int c); |
| | |
#endif | | #endif |