MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / updateScale

Method updateScale

Minecraft-Utils/1.8/src/Overlay.java:104–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 private void updateScale() {
105 cjm.b(0, 0, this.mc.d, this.mc.e);
106 GLUtil.matrixMode(GL11.GL_PROJECTION);
107 GLUtil.loadIdentity();
108 GLUtil.matrixMode(GL11.GL_MODELVIEW);
109 GLUtil.loadIdentity();
110 this.width = this.mc.d;
111 this.height = this.mc.e;
112 buf scaledResolution = new buf(this.mc, mc.d, mc.e);
113 this.width = scaledResolution.a();
114 this.height = scaledResolution.b();
115 GLUtil.clear(256);
116 GLUtil.matrixMode(GL11.GL_PROJECTION);
117 GLUtil.loadIdentity();
118 cjm.a(0.0D, (double) this.width, (double) this.height, 0.0D, 1000.0D, 3000.0D);
119 GLUtil.matrixMode(GL11.GL_MODELVIEW);
120 GLUtil.loadIdentity();
121 GLUtil.translate(0.0F, 0.0F, -2000.0F);
122 }
123
124 private void render() {
125 if ((this.mc == null) || (this.timeStarted == 0L)) {

Callers 1

renderMethod · 0.95

Calls 6

matrixModeMethod · 0.95
loadIdentityMethod · 0.95
clearMethod · 0.95
translateMethod · 0.95
bMethod · 0.45
aMethod · 0.45

Tested by

no test coverage detected