MCPcopy Create free account
hub / github.com/EasyRPG/Player / LocalDraw

Method LocalDraw

src/graphics.cpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void Graphics::LocalDraw(Bitmap& dst, Drawable::Z_t min_z, Drawable::Z_t max_z) {
122 auto& drawable_list = DrawableMgr::GetLocalList();
123
124 if (!drawable_list.empty() && min_z == std::numeric_limits<Drawable::Z_t>::min()) {
125 current_scene->DrawBackground(dst);
126 }
127
128 drawable_list.Draw(dst, min_z, max_z);
129}
130
131std::shared_ptr<Scene> Graphics::UpdateSceneCallback() {
132 auto prev_scene = current_scene;

Callers

nothing calls this directly

Calls 4

minFunction · 0.85
emptyMethod · 0.45
DrawBackgroundMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected