| 531 | } |
| 532 | |
| 533 | Graphics::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 | |
| 577 | void Graphics::Initialize() { |
| 578 | initialized = true; |
nothing calls this directly
no test coverage detected