mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-25 13:41:32 -04:00
Fix isledecomp/isle merge (#150)
* Fix isledecomp/isle merge * Use constant
This commit is contained in:
parent
a75e3a4377
commit
390fef9f9a
@ -695,7 +695,7 @@ inline Result MeshSetTextureMappingMode(MeshImpl::MeshData* pMesh, TextureMappin
|
|||||||
return ResultVal(pMesh->groupMesh->SetGroupMapping(pMesh->groupIndex, D3DRMMAP_PERSPCORRECT));
|
return ResultVal(pMesh->groupMesh->SetGroupMapping(pMesh->groupIndex, D3DRMMAP_PERSPCORRECT));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return ResultVal(pMesh->groupMesh->SetGroupMapping(pMesh->groupIndex, 0));
|
return ResultVal(pMesh->groupMesh->SetGroupMapping(pMesh->groupIndex, D3DRMMAP_NONE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,16 +45,6 @@ Mesh* MeshBuilderImpl::CreateMesh(
|
|||||||
return pMeshImpl;
|
return pMeshImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Result MeshSetTextureMappingMode(MeshImpl::MeshData* pMesh, TextureMappingMode mode)
|
|
||||||
{
|
|
||||||
if (mode == PerspectiveCorrect) {
|
|
||||||
return ResultVal(pMesh->groupMesh->SetGroupMapping(pMesh->groupIndex, D3DRMMAP_PERSPCORRECT));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return ResultVal(pMesh->groupMesh->SetGroupMapping(pMesh->groupIndex, D3DRMMAP_NONE));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
inline Result CreateMesh(
|
inline Result CreateMesh(
|
||||||
IDirect3DRMMesh* pD3DRM,
|
IDirect3DRMMesh* pD3DRM,
|
||||||
unsigned int faceCount,
|
unsigned int faceCount,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user