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

Method Draw

src/graphics.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void Graphics::Draw(Bitmap& dst) {
108 auto& transition = Transition::instance();
109
110 auto min_z = std::numeric_limits<Drawable::Z_t>::min();
111 auto max_z = std::numeric_limits<Drawable::Z_t>::max();
112 if (transition.IsActive()) {
113 min_z = transition.GetZ();
114 } else if (transition.IsErasedNotActive()) {
115 min_z = transition.GetZ() + 1;
116 dst.Clear();
117 }
118 LocalDraw(dst, min_z, max_z);
119}
120
121void Graphics::LocalDraw(Bitmap& dst, Drawable::Z_t min_z, Drawable::Z_t max_z) {
122 auto& drawable_list = DrawableMgr::GetLocalList();

Callers 1

LocalDrawMethod · 0.45

Calls 6

minFunction · 0.85
maxFunction · 0.85
GetZMethod · 0.80
IsErasedNotActiveMethod · 0.80
IsActiveMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected