(int x, int y, int w, int h, String pic)
| 207 | ============= |
| 208 | */ |
| 209 | public void Draw_TileClear(int x, int y, int w, int h, String pic) { |
| 210 | image_t image; |
| 211 | |
| 212 | image = Draw_FindPic(pic); |
| 213 | if (image == null) |
| 214 | { |
| 215 | Com.Printf(Defines.PRINT_ALL, "Can't find pic: " + pic + '\n'); |
| 216 | return; |
| 217 | } |
| 218 | |
| 219 | if ( ( ( gl_config.renderer == GL_RENDERER_MCD ) || ( (gl_config.renderer & GL_RENDERER_RENDITION) != 0 ) ) && !image.has_alpha) |
| 220 | gl.glDisable(GL_ALPHA_TEST); |
| 221 | |
| 222 | GL_Bind(image.texnum); |
| 223 | gl.glBegin (GL_QUADS); |
| 224 | gl.glTexCoord2f(x/64.0f, y/64.0f); |
| 225 | gl.glVertex2f (x, y); |
| 226 | gl.glTexCoord2f( (x+w)/64.0f, y/64.0f); |
| 227 | gl.glVertex2f(x+w, y); |
| 228 | gl.glTexCoord2f( (x+w)/64.0f, (y+h)/64.0f); |
| 229 | gl.glVertex2f(x+w, y+h); |
| 230 | gl.glTexCoord2f( x/64.0f, (y+h)/64.0f ); |
| 231 | gl.glVertex2f (x, y+h); |
| 232 | gl.glEnd (); |
| 233 | |
| 234 | if ( ( ( gl_config.renderer == GL_RENDERER_MCD ) || ( (gl_config.renderer & GL_RENDERER_RENDITION) != 0 ) ) && !image.has_alpha) |
| 235 | gl.glEnable(GL_ALPHA_TEST); |
| 236 | } |
| 237 | |
| 238 | |
| 239 | /* |
nothing calls this directly
no test coverage detected