~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/debugwindow.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-27 09:14:03 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130527091403-4b1jceqok7g2v5on
Tags: 1.3.5.26-1
[ Andrei Karas ]
* Add new files to copyright file.
* Update homepage URL.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        // TRANSLATORS: debug window label
175
175
        _("Draw calls:"), "?"))),
176
176
#endif
 
177
#ifdef DEBUG_BIND_TEXTURE
 
178
    mBindsLabel(new Label(this, strprintf("%s %s",
 
179
        // TRANSLATORS: debug window label
 
180
        _("Texture binds:"), "?"))),
 
181
#endif
177
182
    // TRANSLATORS: debug window label, frames per second
178
183
    mFPSLabel(new Label(this, strprintf(_("%d FPS"), 0))),
179
184
    // TRANSLATORS: debug window label, logic per second
219
224
    place(0, 7, mParticleCountLabel, 2);
220
225
    place(0, 8, mMapActorCountLabel, 2);
221
226
#ifdef USE_OPENGL
222
 
#if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS)
 
227
#if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) \
 
228
    || defined(DEBUG_BIND_TEXTURE)
223
229
    int n = 9;
224
230
#endif
225
231
#ifdef DEBUG_OPENGL_LEAKS
231
237
#endif
232
238
#ifdef DEBUG_DRAW_CALLS
233
239
    place(0, n, mDrawCallsLabel, 2);
 
240
    n ++;
 
241
#endif
 
242
#ifdef DEBUG_BIND_TEXTURE
 
243
    place(0, n, mBindsLabel, 2);
234
244
#endif
235
245
#endif
236
246
    place.getCell().matchColWidth(0, 0);
300
310
                    _("Draw calls:"), mainGraphics->getDrawCalls()));
301
311
            }
302
312
#endif
 
313
#ifdef DEBUG_BIND_TEXTURE
 
314
            if (mainGraphics)
 
315
            {
 
316
                mBindsLabel->setCaption(strprintf("%s %d",
 
317
                    // TRANSLATORS: debug window label
 
318
                    _("Texture binds:"), mainGraphics->getBinds()));
 
319
            }
 
320
#endif
303
321
#endif
304
322
        }
305
323
    }