Skip to content

Instantly share code, notes, and snippets.

@Andrej123456789
Created December 28, 2021 15:22
Show Gist options
  • Save Andrej123456789/463a5df470f96b2d9fe9c30701385fd9 to your computer and use it in GitHub Desktop.
Save Andrej123456789/463a5df470f96b2d9fe9c30701385fd9 to your computer and use it in GitHub Desktop.
#include "Window.h"
int status = 0;
void Basic::Rectangle(size_t x, size_t y, size_t width, size_t height, uint32_t colour)
{
for (size_t y1 = y; y1 < y + height; y1++)
{
for (size_t x1 = x; x1 < x + width; x1++)
{
GlobalRenderer->PutPix(x1, y1, colour);
}
}
}
void Basic::Square(size_t x, size_t y, size_t width, size_t height, uint32_t colour)
{
BasicStuff->Rectangle(x, y, width, height, colour);
}
void StartMenu::DrawStartMenu(int rows, uint32_t color)
{
BasicStuff->Rectangle(0, 720, 300, 300, color);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment