2026-07-08 22:17:50 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
#include "../datatypes.cpp"
|
|
|
|
|
#include "../helpers.cpp"
|
|
|
|
|
#include "../buffer.cpp"
|
|
|
|
|
|
|
|
|
|
namespace UwU {
|
2026-07-20 01:41:10 -07:00
|
|
|
template <class ShaderT>
|
2026-07-08 22:17:50 -07:00
|
|
|
class ShaderBase {
|
|
|
|
|
public:
|
|
|
|
|
Color shade(uint16_t x, uint16_t y) {
|
2026-07-20 01:41:10 -07:00
|
|
|
return static_cast<ShaderT*>(this)->shade(x, y);
|
2026-07-08 22:17:50 -07:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|