shaders headerfile, and added CRTP shader to Point

This commit is contained in:
2026-07-20 01:52:30 -07:00
parent 444143ced9
commit 0f0e352fca
5 changed files with 14 additions and 19 deletions
+4 -2
View File
@@ -39,10 +39,12 @@ int main(void) {
UwU::Surface surface = UwU::Surface(w, h, onKey);
UwU::ColorShader fuchsia = UwU::ColorShader(UwU::Color(0xb00b69ff));
UwU::Rectangle rectangle = UwU::Rectangle(69, 69, 420, 420);
rectangle.draw(surface.buffer, fuchsia);
UwU::ColorShader green = UwU::ColorShader(UwU::Color(0x00ff00ff));
UwU::Point point = UwU::Point(187, 37);
point.draw(surface.buffer, green);
// // Benchmarking
// struct timespec start, end;