free ram and tyrobj wip

This commit is contained in:
h4570
2022-07-26 19:32:20 +02:00
parent 70028a8f18
commit 7a9b294945
15 changed files with 550 additions and 27 deletions
@@ -72,11 +72,12 @@ void RendererCore2D::render(Sprite* sprite,
rect->color.q = 0;
rect->v0.x = sprite->position.x;
rect->v0.y = sprite->position.y;
rect->v0.y = sprite->position.y / 2.0F; // interlacing
rect->v0.z = (u32)-1;
rect->v1.x = (sprite->size.x * sprite->scale) + sprite->position.x;
rect->v1.y = (sprite->size.y * sprite->scale) + sprite->position.y;
rect->v1.y /= 2.0F; // interlacing
rect->v1.z = (u32)-1;
auto* packet = packets[context];
+4 -1
View File
@@ -21,6 +21,8 @@ void RendererSettings::copy(RendererSettings* out, const RendererSettings* in) {
out->far = in->far;
out->projectionScale = in->projectionScale;
out->aspectRatio = in->aspectRatio;
out->interlacedHeightF = in->interlacedHeightF;
out->interlacedHeightUI = in->interlacedHeightUI;
}
void RendererSettings::set(const RendererSettings& v) { copy(this, &v); }
@@ -38,7 +40,8 @@ std::string RendererSettings::getPrint() const {
res << "near: " << near << ", ";
res << "far: " << far << ", ";
res << "projectionScale: " << projectionScale << ", ";
res << "aspectRatio: " << aspectRatio;
res << "aspectRatio: " << aspectRatio << ", ";
res << "interlaced height: " << interlacedHeightF;
res << ")";
return res.str();
}