small readme cleanup

This commit is contained in:
Noel Berry 2020-08-27 20:23:26 -07:00
parent 5348472692
commit 14ffdc4151

View File

@ -28,7 +28,11 @@ void render()
{ {
Graphics::clear(Graphics::backbuffer, 0x00000000); Graphics::clear(Graphics::backbuffer, 0x00000000);
batch.push_matrix(Mat3x2::create_transform(Vec2(App::draw_width(), App::draw_height()) / 2, Vec2::zero, Vec2::one, Time::elapsed * Calc::TAU)); Vec2 center = Vec2(App::draw_width(), App::draw_height()) / 2;
float rotation = Time::elapsed * Calc::TAU;
Mat3x2 transform = Mat3x2::create_transform(center, Vec2::zero, Vec2::one, rotation);
batch.push_matrix(transform);
batch.rect(Rect(-32, -32, 64, 64), 0xff0000); batch.rect(Rect(-32, -32, 64, 64), 0xff0000);
batch.pop_matrix(); batch.pop_matrix();