DirectX8 to DirectX

This commit is contained in:
onurcan488
2026-02-16 20:59:18 +03:00
parent 3e604d5f10
commit f895a1a4a2
14 changed files with 43 additions and 45 deletions

View File

@@ -2,7 +2,7 @@
#include "ActorInstance.h"
#include "AreaTerrain.h"
#include "RaceData.h"
#include "SpeedTreeLib/SpeedTreeForestDirectX8.h"
#include "SpeedTreeLib/SpeedTreeForestDirectX.h"
#include "SpeedTreeLib/SpeedTreeWrapper.h"
enum
@@ -813,7 +813,7 @@ void CActorInstance::__CreateTree(const char * c_szFileName)
{
__DestroyTree();
CSpeedTreeForestDirectX8& rkForest=CSpeedTreeForestDirectX8::Instance();
CSpeedTreeForestDirectX& rkForest=CSpeedTreeForestDirectX::Instance();
m_pkTree=rkForest.CreateInstance(m_x, m_y, m_z, GetCaseCRC32(c_szFileName, strlen(c_szFileName)), c_szFileName);
m_pkTree->SetPosition(m_x, m_y, m_z);
m_pkTree->UpdateBoundingSphere();
@@ -825,7 +825,7 @@ void CActorInstance::__DestroyTree()
if (!m_pkTree)
return;
CSpeedTreeForestDirectX8::Instance().DeleteInstance(m_pkTree);
CSpeedTreeForestDirectX::Instance().DeleteInstance(m_pkTree);
}
void CActorInstance::__SetTreePosition(float fx, float fy, float fz)