Rename internal C++ Color struct to Color32 to help differentiate it from Colorf.

This commit is contained in:
Alex Szpakowski
2019-09-14 23:13:40 -03:00
parent e824a1e26b
commit 9ab2a94037
17 changed files with 65 additions and 65 deletions
+3 -3
View File
@@ -1062,7 +1062,7 @@ void ParticleSystem::draw(Graphics *gfx, const Matrix4 &m)
// Particle colors are stored as floats (0-1) but vertex colors are
// unsigned bytes (0-255).
Color c = toColor(p->color);
Color32 c = toColor32(p->color);
// set the texture coordinate and color data for particle vertices
for (int v = 0; v < 4; v++)
@@ -1076,10 +1076,10 @@ void ParticleSystem::draw(Graphics *gfx, const Matrix4 &m)
p = p->next;
}
Graphics::TempTransform transform(gfx, m);
buffer->unmap();
Graphics::TempTransform transform(gfx, m);
vertex::BufferBindings vertexbuffers;
vertexbuffers.set(0, buffer, 0);