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

Method updateScale

Minecraft-Utils/1.10/src/Overlay.java:103–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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