steam networking

This commit is contained in:
2026-03-02 17:31:49 +02:00
parent 3db160b49e
commit 0dc8f1b36f
14 changed files with 99 additions and 7 deletions

View File

@@ -120,6 +120,8 @@ public:
virtual IMesh *CreateMesh( const char *szName ) override;
virtual IMeshInstance *CreateInstance( IMesh *pMesh ) override;
virtual void DestroyMeshInstance( IMesh *pMesh, IMeshInstance *pInstance ) override;
virtual void DestroyMesh( IMesh *pMesh ) override;
virtual void ConfigureShader( IShader *pShader ) override;
private:
@@ -355,3 +357,25 @@ IMeshInstance *CFunnyWorldRenderer::CreateInstance( IMesh *pMesh )
return pInstance;
}
void CFunnyWorldRenderer::DestroyMeshInstance( IMesh *pMesh, IMeshInstance *pInstance )
{
if (!pMesh)
return;
CFunnyMesh *pFunnyMesh = (CFunnyMesh*)pMesh;
for ( uint32_t i = 0; i < pFunnyMesh->m_instances.GetSize(); i++ )
{
if ( pFunnyMesh->m_instances[i] != pInstance)
continue;
delete pFunnyMesh->m_instances[i];
pFunnyMesh->m_instances.RemoveAt(i, 1);
break;
}
}
void CFunnyWorldRenderer::DestroyMesh( IMesh *pMesh )
{
}