| version 1.16 | | version 1.17 |
|---|
| | |
| extern int ogl_luminance4_alpha4_ok; | | extern int ogl_luminance4_alpha4_ok; |
| extern int ogl_rgba2_ok; | | extern int ogl_rgba2_ok; |
| extern int ogl_readpixels_ok; | | extern int ogl_readpixels_ok; |
| | | extern int ogl_gettexlevelparam_ok; |
| | | #ifdef GL_ARB_multitexture |
| | | extern int ogl_arb_multitexture_ok; |
| | | #else |
| | | #define ogl_arb_multitexture_ok 0 |
| | | #endif |
| | | #ifdef GL_SGIS_multitexture |
| | | extern int ogl_sgis_multitexture_ok; |
| | | #else |
| | | #define ogl_sgis_multitexture_ok 0 |
| | | #endif |
| | | |
| extern int gl_initialized; | | extern int gl_initialized; |
| extern int GL_texmagfilt,GL_texminfilt,GL_needmipmaps; | | extern int GL_texmagfilt,GL_texminfilt,GL_needmipmaps; |
| | |
| void ogl_close(void);//one time shutdown | | void ogl_close(void);//one time shutdown |
| | | |
| //generic funcs | | //generic funcs |
| #define OGLTEXBUFSIZE (1024*1024*4) | | //#define OGLTEXBUFSIZE (1024*1024*4) |
| | | #define OGLTEXBUFSIZE (2048*2048*4) |
| extern GLubyte texbuf[OGLTEXBUFSIZE]; | | extern GLubyte texbuf[OGLTEXBUFSIZE]; |
| //void ogl_filltexbuf(unsigned char *data,GLubyte *texp,int width,int height,int twidth,int theight); | | //void ogl_filltexbuf(unsigned char *data,GLubyte *texp,int width,int height,int twidth,int theight); |
| void ogl_filltexbuf(unsigned char *data,GLubyte *texp,int truewidth,int width,int height,int dxo,int dyo,int twidth,int theight,int type); | | void ogl_filltexbuf(unsigned char *data,GLubyte *texp,int truewidth,int width,int height,int dxo,int dyo,int twidth,int theight,int type); |