private void ReleaseTextures()
 {
     // Release the textures object.
     ColorTexture?.ShutDown();
     ColorTexture = null;
     NormalMapTexture?.ShutDown();
     NormalMapTexture = null;
 }
예제 #2
0
 private void ReleaseTextures()
 {
     // Release the normal map texture object.
     NormalMapTexture?.ShutDown();
     NormalMapTexture = null;
     // Release the color texture object.
     ColorTexture?.ShutDown();
     ColorTexture = null;
 }
예제 #3
0
 private void ShutdownBuffers()
 {
     // Release the Textures within this class.
     ColorTexture?.ShutDown();
     ColorTexture = null;
     NormalMapTexture?.ShutDown();
     NormalMapTexture = null;
     // Return the index buffer.
     IndexBuffer?.Dispose();
     IndexBuffer = null;
     // Release the vertex buffer.
     VertexBuffer?.Dispose();
     VertexBuffer = null;
 }