optimizations + reorder vertex index
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user