added mappers to rest of primatives

This commit is contained in:
2026-07-24 18:31:49 -07:00
parent 78ec985f7a
commit eddbb85256
6 changed files with 49 additions and 33 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ namespace UwU {
uint16_t y1;
// Draw a rectangle
template <class ShaderT, class MapperT>
template <class MapperT, class ShaderT>
void draw (Buffer buffer, MapperBase<MapperT>& mapper, ShaderBase<ShaderT>& shader) {
if (x0 > buffer.width || y0 > buffer.height || x1 > buffer.width || y1 > buffer.height) {return;};
for (uint16_t y = y0; y <= y1; y++) {