1
0
Fork 0

include/Spectre/System/Log.h: implement a static "Log" class instead of just a function.

This commit is contained in:
Henrik Hautakoski 2019-11-10 14:56:56 +01:00
parent e10daeaaa6
commit 3b27db9435
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
8 changed files with 101 additions and 31 deletions

View file

@ -108,11 +108,11 @@ void BatchRenderer2D::setBatchSize(unsigned short size)
//glBindBuffer(GL_ARRAY_BUFFER, 0);
// Log
log("BatchRenderer - BatchSize\n");
log(" num sprites: %i\n", m_size);
log(" num indices: %i\n", m_size * 6);
log(" num vertices: %i\n", m_size);
log("------\n");
Log::info("BatchRenderer - BatchSize");
Log::info(" num sprites: %i", m_size);
Log::info(" num indices: %i", m_size * 6);
Log::info(" num vertices: %i", m_size);
Log::info("------");
}
void BatchRenderer2D::begin()