#include <map_texture_coordinator.h>

Public Member Functions | |
| OverworldMapTextureCoordinator (const MapTextureContext &ctx) | |
| void | ResetMapBitmaps () |
| void | ProcessDeferredTextures () |
| void | EnsureMapTexture (int map_index) |
| void | PrimeWorldMaps (int world, bool process_texture_queue=false) |
Private Attributes | |
| MapTextureContext | ctx_ |
Definition at line 27 of file map_texture_coordinator.h.
|
inlineexplicit |
Definition at line 29 of file map_texture_coordinator.h.
| void yaze::editor::OverworldMapTextureCoordinator::ResetMapBitmaps | ( | ) |
Definition at line 22 of file map_texture_coordinator.cc.
References ctx_, and yaze::editor::MapTextureContext::maps_bmp.
| void yaze::editor::OverworldMapTextureCoordinator::ProcessDeferredTextures | ( | ) |
Definition at line 31 of file map_texture_coordinator.cc.
References ctx_, yaze::editor::MapTextureContext::current_map, yaze::editor::MapTextureContext::current_world, yaze::gfx::Arena::Get(), yaze::zelda3::kNumOverworldMaps, yaze::editor::MapTextureContext::maps_bmp, yaze::gfx::Arena::ProcessTextureQueue(), yaze::editor::MapTextureContext::refresh_map_on_demand, and yaze::editor::MapTextureContext::renderer.
Referenced by PrimeWorldMaps().

| void yaze::editor::OverworldMapTextureCoordinator::EnsureMapTexture | ( | int | map_index | ) |
Definition at line 70 of file map_texture_coordinator.cc.
References yaze::gfx::Arena::CREATE, ctx_, yaze::zelda3::Overworld::EnsureMapBuilt(), yaze::gfx::Arena::Get(), yaze::zelda3::kNumOverworldMaps, yaze::editor::kOverworldMapSize, LOG_ERROR, yaze::editor::MapTextureContext::maps_bmp, yaze::editor::MapTextureContext::overworld, yaze::zelda3::Overworld::overworld_map(), yaze::gfx::Arena::QueueTextureCommand(), and yaze::gfx::Arena::UPDATE.
Referenced by PrimeWorldMaps().

| void yaze::editor::OverworldMapTextureCoordinator::PrimeWorldMaps | ( | int | world, |
| bool | process_texture_queue = false ) |
Definition at line 119 of file map_texture_coordinator.cc.
References ctx_, yaze::editor::MapTextureContext::current_map, yaze::editor::MapTextureContext::current_world, EnsureMapTexture(), yaze::zelda3::kNumOverworldMaps, and ProcessDeferredTextures().

|
private |
Definition at line 38 of file map_texture_coordinator.h.
Referenced by EnsureMapTexture(), PrimeWorldMaps(), ProcessDeferredTextures(), and ResetMapBitmaps().