version 1.10 | | version 1.11 |
---|
| | |
| | |
ogl_init_state(); | | ogl_init_state(); |
OGL_ENABLE(GL_TEXTURE_2D); | | OGL_ENABLE(GL_TEXTURE_2D); |
OGL_TEXENV(GL_TEXTURE_ENV_MODE,GL_DECAL); | | |
OGL_TEXPARAM(GL_TEXTURE_MAG_FILTER,GL_NEAREST); | | |
OGL_TEXPARAM(GL_TEXTURE_MIN_FILTER,GL_NEAREST); | | |
// glEnable( GL_TEXTURE_2D ); | | // glEnable( GL_TEXTURE_2D ); |
// glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL ); | | glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL ); |
// glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,GL_NEAREST ); | | glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,GL_NEAREST ); |
// glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST ); | | glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST ); |
// if wrap is true, the texture wraps over at the edges (repeat) | | // if wrap is true, the texture wraps over at the edges (repeat) |
// ... false, the texture ends at the edges (clamp) | | // ... false, the texture ends at the edges (clamp) |
// glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,GL_CLAMP ); | | // glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,GL_CLAMP ); |