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

Method Mipmaps

src/main/java/net/optifine/Mipmaps.java:25–39  ·  view source on GitHub ↗
(String iconName, int width, int height, int[] data, boolean direct)

Source from the content-addressed store, hash-verified

23 private Dimension[] mipmapDimensions;
24
25 public Mipmaps(String iconName, int width, int height, int[] data, boolean direct)
26 {
27 this.iconName = iconName;
28 this.width = width;
29 this.height = height;
30 this.data = data;
31 this.direct = direct;
32 this.mipmapDimensions = makeMipmapDimensions(width, height, iconName);
33 this.mipmapDatas = generateMipMapData(data, width, height, this.mipmapDimensions);
34
35 if (direct)
36 {
37 this.mipmapBuffers = makeMipmapBuffers(this.mipmapDimensions, this.mipmapDatas);
38 }
39 }
40
41 public static Dimension[] makeMipmapDimensions(int width, int height, String iconName)
42 {

Callers

nothing calls this directly

Calls 3

makeMipmapDimensionsMethod · 0.95
generateMipMapDataMethod · 0.95
makeMipmapBuffersMethod · 0.95

Tested by

no test coverage detected