Some stats

This commit is contained in:
Shinovon 2026-05-03 01:29:57 +05:00
parent 1209902fe9
commit 7e7188abbd
6 changed files with 54 additions and 0 deletions

View file

@ -21,9 +21,13 @@ namespace gl3 {
#define MAX_LIGHTS
extern "C" int draw;
extern "C" int render;
void
drawInst_simple(InstanceDataHeader *header, InstanceData *inst)
{
draw++;
flushCache();
glDrawElements(header->primType, inst->numIndex,
GL_UNSIGNED_SHORT, ((uint8*) header->indexBuffer) + inst->offset);
@ -133,6 +137,7 @@ lightingCB(Atomic *atomic)
void
defaultRenderCB(Atomic *atomic, InstanceDataHeader *header)
{
render++;
Material *m;
uint32 flags = atomic->geometry->flags;