修改游戏底层矩阵相关

This commit is contained in:
2025-10-26 14:38:53 +08:00
parent dc0213dc16
commit 88f039348a
50 changed files with 1983 additions and 362 deletions

View File

@@ -40,13 +40,13 @@ void RenderBase::Render()
Component::Render();
}
void RenderBase::SetIterationPos(VecFPos pos)
void RenderBase::SetIterationPos(Vec2 pos)
{
Component::SetIterationPos(pos);
CalcRenderInfo(); // 更新渲染信息
}
void RenderBase::SetIterationScale(VecFPos scale)
void RenderBase::SetIterationScale(Vec2 scale)
{
Component::SetIterationScale(scale);
CalcRenderInfo(); // 更新渲染信息
@@ -60,14 +60,14 @@ void RenderBase::SetIterationRotation(float angle)
CalcRenderInfo(); // 更新渲染信息
}
void RenderBase::SetPos(VecFPos pos)
void RenderBase::SetPos(Vec2 pos)
{
Component::SetPos(pos);
CalcRenderInfo(); // 更新渲染信息
}
void RenderBase::SetScale(VecFPos scale)
void RenderBase::SetScale(Vec2 scale)
{
Component::SetScale(scale);
CalcRenderInfo(); // 更新渲染信息
@@ -79,7 +79,7 @@ void RenderBase::SetRotation(float angle)
CalcRenderInfo(); // 更新渲染信息
}
void RenderBase::SetAnchor(VecFPos anchor)
void RenderBase::SetAnchor(Vec2 anchor)
{
Component::SetAnchor(anchor);
CalcRenderInfo(); // 更新渲染信息