MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / allocateMipmapTextures

Method allocateMipmapTextures

src/main/java/net/optifine/Mipmaps.java:208–220  ·  view source on GitHub ↗
(int width, int height, String name)

Source from the content-addressed store, hash-verified

206 }
207
208 public static void allocateMipmapTextures(int width, int height, String name)
209 {
210 Dimension[] adimension = makeMipmapDimensions(width, height, name);
211
212 for (int i = 0; i < adimension.length; ++i)
213 {
214 Dimension dimension = adimension[i];
215 int j = dimension.width;
216 int k = dimension.height;
217 int l = i + 1;
218 GL11.glTexImage2D(GL11.GL_TEXTURE_2D, l, GL11.GL_RGBA, j, k, 0, GL12.GL_BGRA, GL12.GL_UNSIGNED_INT_8_8_8_8_REV, (ByteBuffer) null);
219 }
220 }
221}

Callers

nothing calls this directly

Calls 2

makeMipmapDimensionsMethod · 0.95
glTexImage2DMethod · 0.80

Tested by

no test coverage detected