vector renderring
This commit is contained in:
commit
c895c266fb
5 changed files with 53 additions and 72 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue