free ram and tyrobj wip
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user