You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
370 B

#include "Panel.hpp"
#include "util.hpp"
namespace mcpaint::gui {
void Panel::render(float deltaTime) {
Vector2 position = this->position.toPixels();
Vector2 size = this->size.toPixels();
Rectangle rect = {position.x, position.y, size.x, size.y};
DrawRectangleRec(rect, ColorFromHex(0x333333FF));
DrawRectangleLinesEx(rect, 1, ColorFromHex(0x555555FF));
}
}