mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
fixed old variable name in readme example
This commit is contained in:
parent
9e3f745a38
commit
d34a55e2ac
|
@ -38,7 +38,7 @@ void render()
|
||||||
App::backbuffer->clear(Color::black);
|
App::backbuffer->clear(Color::black);
|
||||||
|
|
||||||
auto center = Vec2(App::backbuffer->width(), App::backbuffer->height()) / 2;
|
auto center = Vec2(App::backbuffer->width(), App::backbuffer->height()) / 2;
|
||||||
auto rotation = Time::elapsed * Calc::TAU;
|
auto rotation = Time::seconds * Calc::TAU;
|
||||||
auto transform = Mat3x2::create_transform(center, Vec2::zero, Vec2::one, rotation);
|
auto transform = Mat3x2::create_transform(center, Vec2::zero, Vec2::one, rotation);
|
||||||
|
|
||||||
batch.push_matrix(transform);
|
batch.push_matrix(transform);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user