(String iconName, int width, int height, int[] data, boolean direct)
| 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 | { |
nothing calls this directly
no test coverage detected