stubbed out CRTP shaders

This commit is contained in:
2026-07-08 22:17:50 -07:00
parent bb30e2df0b
commit b95022de29
3 changed files with 44 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include <stdint.h>
#include "../datatypes.cpp"
#include "../helpers.cpp"
#include "../buffer.cpp"
#include "shaderbase.cpp"
namespace UwU {
class ColorShader : public ShaderBase<ColorShader> {
public:
ColorShader(Color c) {
this->c = c;
}
Color c;
Color shade(uint16_t x, uint16_t y) {
return c;
}
};
}