Browse Source

Draw the liquid

Godzil 1 year ago
parent
commit
62e017198f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      source/app.cpp

+ 5 - 0
source/app.cpp

@@ -147,6 +147,11 @@ void application::render()
     renderTime.start();
 
     graphics::clearScreen(0xFF056263);
+
+    // Draw the liquid
+    graphics::draw::fillRect(this->liquid.x + this->liquid.w / 2, this->liquid.y + this->liquid.h / 2,
+                             this->liquid.w, this->liquid.h, 0xFF633713);
+
     for (auto part:this->particles)
     {
         graphics::draw::fillCircle(part->position.x, part->position.y, part->radius, 0xFFFFFFFF);