mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 21:17:53 +00:00
CModelEditorViewport: Pass color by reference
Avoids an unnecessary 16-byte float copy
This commit is contained in:
@@ -31,7 +31,7 @@ void CModelEditorViewport::SetDrawMode(EDrawMode Mode)
|
||||
mMode = Mode;
|
||||
}
|
||||
|
||||
void CModelEditorViewport::SetClearColor(CColor Color)
|
||||
void CModelEditorViewport::SetClearColor(const CColor& Color)
|
||||
{
|
||||
mpRenderer->SetClearColor(Color);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
void SetNode(CModelNode *pNode);
|
||||
void SetActiveMaterial(CMaterial *pMat);
|
||||
void SetDrawMode(EDrawMode Mode);
|
||||
void SetClearColor(CColor Color);
|
||||
void SetClearColor(const CColor& Color);
|
||||
void SetGridEnabled(bool Enable);
|
||||
void Paint() override;
|
||||
void OnResize() override;
|
||||
|
||||
Reference in New Issue
Block a user