17 lines
305 B
C++
17 lines
305 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "../datatypes.cpp"
|
|
#include "../helpers.cpp"
|
|
#include "../buffer.cpp"
|
|
|
|
namespace UwU {
|
|
template <class ShaderT>
|
|
class ShaderBase {
|
|
public:
|
|
Color shade(uint16_t x, uint16_t y) {
|
|
return static_cast<ShaderT*>(this)->shade(x, y);
|
|
}
|
|
};
|
|
} |