vector renderring

This commit is contained in:
Jorijn van der Graaf 2026-03-31 15:22:55 +02:00
commit c895c266fb
5 changed files with 53 additions and 72 deletions

View file

@ -94,11 +94,11 @@ export namespace Crafter {
EmptyRotatingBase
>;
template<std::uint8_t Frames = 1>
template<typename T, std::uint8_t Frames = 1>
struct RenderingElement2DBase : Transform2D {
ScaleData2D oldScale[Frames];
bool redraw[Frames];
std::vector<Vector<std::uint8_t, 4>> buffer;
std::vector<Vector<T, 4, 4>> buffer;
OpaqueType opaque;
RenderingElement2DBase(Anchor2D anchor) : Transform2D(anchor) {
for(std::uint8_t i = 0; i < Frames; i++) {