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

Method Init

client/src/main/java/jake2/client/VID.java:281–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279 ============
280 */
281 public static void Init()
282 {
283 /* Create the video variables so we know how to start the graphics drivers */
284 vid_ref = Cvar.getInstance().Get("vid_ref", Renderer.getPreferedName(), CVAR_ARCHIVE);
285 vid_xpos = Cvar.getInstance().Get("vid_xpos", "3", CVAR_ARCHIVE);
286 vid_ypos = Cvar.getInstance().Get("vid_ypos", "22", CVAR_ARCHIVE);
287 vid_width = Cvar.getInstance().Get("vid_width", "640", CVAR_ARCHIVE);
288 vid_height = Cvar.getInstance().Get("vid_height", "480", CVAR_ARCHIVE);
289 vid_fullscreen = Cvar.getInstance().Get("vid_fullscreen", "0", CVAR_ARCHIVE);
290 vid_gamma = Cvar.getInstance().Get( "vid_gamma", "1", CVAR_ARCHIVE );
291
292 vid_modes[11].width = (int)vid_width.value;
293 vid_modes[11].height = (int)vid_height.value;
294
295 /* Add some console commands that we want to handle */
296 Cmd.AddCommand ("vid_restart", (List<String> args) -> Restart_f());
297
298 /* Disable the 3Dfx splash screen */
299 // putenv("FX_GLIDE_NO_SPLASH=0");
300
301 /* Start the graphics mode and load refresh DLL */
302 CheckChanges();
303 }
304
305 /*
306 ============

Callers 1

InitMethod · 0.95

Calls 6

getInstanceMethod · 0.95
getPreferedNameMethod · 0.95
AddCommandMethod · 0.95
Restart_fMethod · 0.95
CheckChangesMethod · 0.95
GetMethod · 0.80

Tested by

no test coverage detected