32 #include "gui/viewport.h"
42 #include "resources/map/map.h"
46 #include "utils/timer.h"
53 mMusicFileLabel(
new Label(this,
_(
"Music:"))),
57 mMapNameLabel(
new Label(this,
_(
"Map name:"))),
59 mMinimapLabel(
new Label(this,
_(
"Minimap:"))),
62 _(
"Cursor:"), 0, 0))),
65 _(
"Particle count:"), 88888))),
68 _(
"Map actors count:"), 88888))),
72 _(
"Map atlas count:"), 88888))),
78 #ifdef DEBUG_DRAW_CALLS
81 _(
"Draw calls:"),
"?"))),
83 #ifdef DEBUG_BIND_TEXTURE
86 _(
"Texture binds:"),
"?"))),
115 mFPSText =
_(
"%d FPS (mobile OpenGL ES)");
119 mFPSText =
_(
"%d FPS (mobile OpenGL ES 2)");
147 #if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) \
148 || defined(DEBUG_BIND_TEXTURE)
152 #ifdef DEBUG_OPENGL_LEAKS
155 _(
"Textures count:"),
"?"));
159 #ifdef DEBUG_DRAW_CALLS
160 place(0, n, mDrawCallsLabel, 2, 1);
163 #ifdef DEBUG_BIND_TEXTURE
164 place(0, n, mBindsLabel, 2, 1);
190 if (map !=
nullptr &&
200 _(
"Cursor:"), mouseTileX, mouseTileY));
204 map->
getProperty(
"music", std::string()).c_str()));
207 map->
getProperty(
"minimap", std::string()).c_str()));
210 map->
getProperty(
"_realfilename", std::string()).c_str()));
231 #ifdef DEBUG_OPENGL_LEAKS
236 #ifdef DEBUG_DRAW_CALLS
239 mDrawCallsLabel->setCaption(
strprintf(
"%s %d",
244 #ifdef DEBUG_BIND_TEXTURE
247 mBindsLabel->setCaption(
strprintf(
"%s %d",
Map * getCurrentMap() const
virtual RenderType useOpenGL() const
void setCaption(const std::string &caption)
void matchColWidth(const int n1, const int n2)
ContainerPlacer getPlacer(const int x, const int y)
Label * mMapActorCountLabel
Label * mMapAtlasCountLabel
Label * mParticleCountLabel
MapDebugTab(const Widget2 *const widget)
int getTileHeight() const
int getActorsCount() const
int getAtlasCount() const
const std::string getProperty(const std::string &name, const std::string &def) const
ImageHelper * imageHelper
LocalPlayer * localPlayer
#define BLOCK_START(name)
std::string strprintf(const char *const format,...)