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

Method Init

Source/Graphics/textures.cpp:488–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void Texture::Init() {
489 width = 0;
490 height = 0;
491 size = 0;
492 num_slices = 1;
493 cube_map = false;
494 gl_texture_id = UNLOADED_ID;
495 gl_buffer_id = UNLOADED_ID;
496 wrap_t = 0;
497 wrap_s = 0;
498 min_filter = 0;
499 mag_filter = 0;
500 ref_count = 1;
501 no_mipmap = false;
502 no_reduce = false;
503 use_srgb = false;
504 no_live_update = true;
505 flags = 0;
506 internal_format = GL_NONE;
507 format = GL_NONE;
508 tex_target = GL_NONE;
509 sub_textures.clear();
510 name.clear();
511}
512
513// #pragma optimize(", off)
514void Textures::DisposeTexture(int which, bool free_space) {

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected