Fix function

This commit is contained in:
Christian Semmler 2024-03-08 11:32:44 -05:00
parent e2863a4c07
commit c7ca8869b3
3 changed files with 4 additions and 4 deletions

View File

@ -273,7 +273,7 @@ class MeshImpl : public Mesh {
// vtable+0x10
Result GetTexture(Texture*&) override;
Result SetTextureMappingMode(ProjectionType) override;
Result SetTextureMappingMode(TextureMappingMode) override;
Result SetShadingModel(ShadingModel) override;
Mesh* DeepClone(MeshBuilder*) override;

View File

@ -38,9 +38,9 @@ Result MeshImpl::SetTexture(const Texture* pTexture)
}
// FUNCTION: LEGO1 0x100a3f80
Result MeshImpl::SetTextureMappingMode(ProjectionType projType)
Result MeshImpl::SetTextureMappingMode(TextureMappingMode mode)
{
if (projType == Perspective) {
if (mode == PerspectiveCorrect) {
return ResultVal(m_data->groupMesh->SetGroupMapping(m_data->groupIndex, D3DRMMAP_PERSPCORRECT));
}
else {

View File

@ -276,7 +276,7 @@ class Mesh : public Object {
virtual Result SetTexture(const Texture*) = 0;
virtual Result GetTexture(Texture*&) = 0;
virtual Result SetTextureMappingMode(ProjectionType) = 0;
virtual Result SetTextureMappingMode(TextureMappingMode) = 0;
virtual Result SetShadingModel(ShadingModel) = 0;
// Clone data in underlying group