MCPcopy Create free account
hub / github.com/demoth/jake2 / Draw_FadeScreen

Method Draw_FadeScreen

client/src/main/java/jake2/client/render/fast/Draw.java:280–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 ================
279 */
280 public void Draw_FadeScreen() {
281 gl.glEnable(GL_BLEND);
282 gl.glDisable(GL_TEXTURE_2D);
283 gl.glColor4f(0, 0, 0, 0.8f);
284 gl.glBegin(GL_QUADS);
285
286 gl.glVertex2f(0,0);
287 gl.glVertex2f(vid.getWidth(), 0);
288 gl.glVertex2f(vid.getWidth(), vid.getHeight());
289 gl.glVertex2f(0, vid.getHeight());
290
291 gl.glEnd();
292 gl.glColor4f(1,1,1,1);
293 gl.glEnable(GL_TEXTURE_2D);
294 gl.glDisable(GL_BLEND);
295 }
296
297// ====================================================================
298

Callers

nothing calls this directly

Calls 8

getWidthMethod · 0.80
getHeightMethod · 0.80
glEnableMethod · 0.65
glDisableMethod · 0.65
glColor4fMethod · 0.65
glBeginMethod · 0.65
glVertex2fMethod · 0.65
glEndMethod · 0.65

Tested by

no test coverage detected