17 lines
308 B
C++
17 lines
308 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#include "../datatypes.cpp"
|
||
|
|
#include "../helpers.cpp"
|
||
|
|
#include "../buffer.cpp"
|
||
|
|
|
||
|
|
namespace UwU {
|
||
|
|
template <class TextureT>
|
||
|
|
class TextureBase {
|
||
|
|
public:
|
||
|
|
Color texel(uint16_t u, uint16_t v) {
|
||
|
|
return static_cast<TextureT*>(this)->texel(u, v);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|