quadarray.h: Use size_t for everything (quad) count related
This commit is contained in:
parent
7d30ce1a00
commit
18022bf809
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue