MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Graphics

Method Graphics

Source/Graphics/graphics.cpp:533–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533Graphics::Graphics() : gl_lib_loaded_(false),
534 depth_prepass(true),
535 shadow_size(20),
536 cascade_shadow_res(4096),
537 shadow_res(1024 * 2),
538 vbo_array_bound(-1),
539 vbo_element_bound(-1),
540 multisample_framebuffer_exists(false),
541 framebuffer_exists(false),
542 old_FSAA_samples(0),
543 old_post_effects_enable(false),
544 first_load(true),
545 initialized(false),
546 settings_changed(false),
547 sdl_window_(NULL),
548 gl_context(NULL),
549 active_vertex_attrib_arrays(0),
550 wanted_vertex_attrib_arrays(0),
551 max_vertex_attrib_arrays(0),
552 cascade_shadow_fb((GLuint)INVALID_FRAMEBUFFER),
553 static_shadow_fb((GLuint)INVALID_FRAMEBUFFER),
554 cascade_shadow_color_fb((GLuint)INVALID_FRAMEBUFFER),
555 shader("post") {
556 old_render_dims[0] = 0;
557 old_render_dims[1] = 0;
558 config_.SetDetailObjectDecals(true);
559 config_.SetDetailObjectShadows(true);
560 config_.SetDetailObjectLowres(false);
561 config_.SetSimpleFog(false);
562 config_.SetSplitScreen(false);
563 config_.SetFSAASamples(0);
564 config_.SetAnisotropy(0);
565 config_.SetTargetMonitor(0);
566 config_.SetFullscreen(FullscreenMode::kWindowed);
567 config_.SetVSync(false);
568 config_.SetLimitFpsInGame(false);
569 config_.SetMaxFrameRate(60);
570 config_.dynamic_character_cubemap_ = false;
571 shadow_state_.depth_func_unset_ = true;
572 media_mode_ = false;
573 memset(shadow_state_.client_states_, 0, sizeof(shadow_state_.client_states_));
574 shadow_state_.client_active_textures_ = 0;
575}
576
577void Graphics::Initialize() {
578 initialized = true;

Callers

nothing calls this directly

Calls 12

SetSplitScreenMethod · 0.80
SetFSAASamplesMethod · 0.80
SetVSyncMethod · 0.80
SetDetailObjectDecalsMethod · 0.45
SetDetailObjectLowresMethod · 0.45
SetSimpleFogMethod · 0.45
SetAnisotropyMethod · 0.45
SetTargetMonitorMethod · 0.45
SetFullscreenMethod · 0.45
SetLimitFpsInGameMethod · 0.45
SetMaxFrameRateMethod · 0.45

Tested by

no test coverage detected