version 1.6 | | version 1.7 |
---|
| | |
#define OGL_TEXREPEAT() OGL_DISABLE2(GL_texclamp,glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);) | | #define OGL_TEXREPEAT() OGL_DISABLE2(GL_texclamp,glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);) |
| | |
| | |
| | extern int last_width,last_height; |
| | #define OGL_VIEWPORT(x,y,w,h){if (w!=last_width || h!=last_height){glViewport(x,y,w,h);last_width=w;last_height=h;}} |
| | |
//platform specific funcs | | //platform specific funcs |
//MSVC seems to have problems with inline funcs not being found during linking | | //MSVC seems to have problems with inline funcs not being found during linking |
#ifndef _MSC_VER | | #ifndef _MSC_VER |