moved textures into their own classes, better tilemapping
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../datatypes.cpp"
|
||||
#include "../helpers.cpp"
|
||||
#include "../buffer.cpp"
|
||||
#include "texturebase.cpp"
|
||||
|
||||
namespace UwU {
|
||||
class ColorTexture : public TextureBase<ColorTexture> {
|
||||
private:
|
||||
Color color;
|
||||
|
||||
public:
|
||||
ColorTexture(Color color) {
|
||||
this->color = color;
|
||||
}
|
||||
|
||||
Color texel(uint16_t u, uint16_t v) {
|
||||
(void)u;
|
||||
(void)v;
|
||||
return color;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user