MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / rend_SetInitOptions

Function rend_SetInitOptions

legacy/renderer/renderer.cpp:508–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506 }
507}
508void rend_SetInitOptions() {
509 switch (Renderer_type) {
510 case RENDERER_DIRECT3D:
511 /*
512 //#ifdef DEMO
513 if (UseMultitexture)
514 {
515 if (!FindArg("-forcelightmaps"))
516 UseMultitexture=0;
517 }
518 NoLightmaps=true;
519 //#endif
520 */
521 break;
522 default:
523 break;
524 }
525 if (FindArg("-forcelightmaps"))
526 NoLightmaps = false;
527 if (FindArg("-nolightmaps")) {
528 NoLightmaps = true;
529 UseMultitexture = false;
530 }
531 if (FindArg("-NoMultitexture"))
532 UseMultitexture = false;
533}
534// Init our renderer
535int rend_Init(renderer_type state, oeApplication *app, renderer_preferred_state *pref_state) {
536#ifndef DEDICATED_ONLY

Callers 2

rend_InitFunction · 0.85
rend_SetPreferredStateFunction · 0.85

Calls 1

FindArgFunction · 0.50

Tested by

no test coverage detected