ultimatepp/uppsrc/GLDraw/PerfCounters.cpp
cxl 25f9185e64 GLDraw: performance counters
git-svn-id: svn://ultimatepp.org/upp/trunk@12430 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-10-30 12:20:03 +00:00

35 lines
No EOL
463 B
C++

#include "GLDraw.h"
namespace Upp {
int sDrawCounter;
int sElementCounter;
int sTextureCounter;
int sProgramCounter;
void GLClearCounters()
{
sElementCounter = sTextureCounter = sProgramCounter = sDrawCounter = 0;
}
int GLElementCounter()
{
return sElementCounter;
}
int GLTextureCounter()
{
return sTextureCounter;
}
int GLProgramCounter()
{
return sProgramCounter;
}
int GLDrawCounter()
{
return sDrawCounter;
}
};