MCPcopy Create free account
hub / github.com/demoth/jake2 / GL_TextureMode

Method GL_TextureMode

client/src/main/java/jake2/client/render/fast/Image.java:233–260  ·  view source on GitHub ↗
(String string)

Source from the content-addressed store, hash-verified

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 ===============

Callers

nothing calls this directly

Calls 3

PrintfMethod · 0.95
GL_BindMethod · 0.95
glTexParameteriMethod · 0.65

Tested by

no test coverage detected