MAJOR UPDATE - REWORK TEXTURE
-support texture tga retirer +support texture format standard ajouter
This commit is contained in:
@@ -77,9 +77,11 @@ int ModelClass::GetIndexCount()
|
||||
return m_indexCount;
|
||||
}
|
||||
|
||||
ID3D11ShaderResourceView* ModelClass::GetTexture(int index)
|
||||
{
|
||||
return m_Textures[index];
|
||||
ID3D11ShaderResourceView* ModelClass::GetTexture(int index) const {
|
||||
if (index >= 0 && index < m_Textures.size()) {
|
||||
return m_Textures[index];
|
||||
}
|
||||
return nullptr; // Retourne nullptr si l'index est hors limites
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user