shaders headerfile, and added CRTP shader to Point
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user