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

Method R_SetGL2D

client/src/main/java/jake2/client/render/fast/Main.java:886–899  ·  view source on GitHub ↗

R_SetGL2D

()

Source from the content-addressed store, hash-verified

884 * R_SetGL2D
885 */
886 void R_SetGL2D() {
887 // set 2D virtual screen size
888 gl.glViewport(0, 0, vid.getWidth(), vid.getHeight());
889 gl.glMatrixMode(GL_PROJECTION);
890 gl.glLoadIdentity();
891 gl.glOrtho(0, vid.getWidth(), vid.getHeight(), 0, -99999, 99999);
892 gl.glMatrixMode(GL_MODELVIEW);
893 gl.glLoadIdentity();
894 gl.glDisable(GL_DEPTH_TEST);
895 gl.glDisable(GL_CULL_FACE);
896 gl.glDisable(GL_BLEND);
897 gl.glEnable(GL_ALPHA_TEST);
898 gl.glColor4f(1, 1, 1, 1);
899 }
900
901 // stack variable
902 private final float[] light = { 0, 0, 0 };

Callers 1

R_RenderFrameMethod · 0.95

Calls 9

getWidthMethod · 0.80
getHeightMethod · 0.80
glViewportMethod · 0.65
glMatrixModeMethod · 0.65
glLoadIdentityMethod · 0.65
glOrthoMethod · 0.65
glDisableMethod · 0.65
glEnableMethod · 0.65
glColor4fMethod · 0.65

Tested by

no test coverage detected