quadarray.h: Use size_t for everything (quad) count related

This commit is contained in:
Jonas Kulla 2014-08-12 19:46:30 +02:00
parent 7d30ce1a00
commit 18022bf809
3 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ struct QuadArray
VBO::ID vbo;
GLMeta::VAO vao;
int quadCount;
size_t quadCount;
GLsizeiptr vboSize;
QuadArray()
@ -62,7 +62,7 @@ struct QuadArray
VBO::del(vbo);
}
void resize(int size)
void resize(size_t size)
{
vertices.resize(size * 4);
quadCount = size;
@ -115,7 +115,7 @@ struct QuadArray
draw(0, quadCount);
}
int count() const
size_t count() const
{
return quadCount;
}

View File

@ -238,7 +238,7 @@ void SharedState::setBindingData(void *data)
p->bindingData = data;
}
void SharedState::ensureQuadIBO(int minSize)
void SharedState::ensureQuadIBO(size_t minSize)
{
_globalIBO->ensureSize(minSize);
}

View File

@ -92,7 +92,7 @@ struct SharedState
/* Returns global quad IBO, and ensures it has indices
* for at least minSize quads */
void ensureQuadIBO(int minSize);
void ensureQuadIBO(size_t minSize);
GlobalIBO &globalIBO();
/* Global general purpose texture */