Files
UwUGL/shaders/shaderbase.cpp
T

17 lines
305 B
C++
Raw Normal View History

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