optimizations + reorder vertex index

This commit is contained in:
Konstantin Käfer
2014-02-13 14:10:04 +01:00
parent 1a05832a93
commit 54454ed66a
19 changed files with 166 additions and 63 deletions

View File

@@ -12,11 +12,12 @@ size_t LineVertexBuffer::add(vertex_type x, vertex_type y, float ex, float ey, i
int16_t *coords = static_cast<int16_t *>(data);
coords[0] = (x * 2) | tx;
coords[1] = (y * 2) | ty;
coords[2] = linesofar;
int8_t *extrude = static_cast<int8_t *>(data);
extrude[6] = round(extrudeScale * ex);
extrude[7] = round(extrudeScale * ey);
extrude[4] = round(extrudeScale * ex);
extrude[5] = round(extrudeScale * ey);
coords[3] = linesofar;
return idx;
}