moved textures into their own classes, better tilemapping
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#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);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user