Replace Primitive::Translate with Transform
This commit is contained in:
parent
759f0e9225
commit
5467c19c80
11 changed files with 205 additions and 133 deletions
|
|
@ -98,12 +98,10 @@ impl Layer {
|
|||
let mut index_offset = 0;
|
||||
|
||||
for mesh in meshes {
|
||||
let origin = mesh.origin();
|
||||
let indices = mesh.indices();
|
||||
|
||||
let uniforms = Uniforms::new(
|
||||
transformation * Transformation::translate(origin.x, origin.y),
|
||||
);
|
||||
let uniforms =
|
||||
Uniforms::new(transformation * mesh.transformation());
|
||||
|
||||
index_offset +=
|
||||
self.index_buffer.write(queue, index_offset, indices);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue