26 lines
446 B
C++
26 lines
446 B
C++
#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;
|
|
}
|
|
};
|
|
} |