(String string)
| 231 | =============== |
| 232 | */ |
| 233 | void GL_TextureMode(String string) { |
| 234 | |
| 235 | int i; |
| 236 | for (i = 0; i < NUM_GL_MODES; i++) { |
| 237 | if (modes[i].name.equalsIgnoreCase(string)) |
| 238 | break; |
| 239 | } |
| 240 | |
| 241 | if (i == NUM_GL_MODES) { |
| 242 | Com.Printf(Defines.PRINT_ALL, "bad filter name: [" + string + "]\n"); |
| 243 | return; |
| 244 | } |
| 245 | |
| 246 | gl_filter_min = modes[i].minimize; |
| 247 | gl_filter_max = modes[i].maximize; |
| 248 | |
| 249 | image_t glt; |
| 250 | // change all the existing mipmap texture objects |
| 251 | for (i = 0; i < numgltextures; i++) { |
| 252 | glt = gltextures[i]; |
| 253 | |
| 254 | if (glt.type != it_pic && glt.type != it_sky) { |
| 255 | GL_Bind(glt.texnum); |
| 256 | gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, gl_filter_min); |
| 257 | gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gl_filter_max); |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /* |
| 263 | =============== |
nothing calls this directly
no test coverage detected