private void ReleaseTextures() { // Release the textures object. ColorTexture?.ShutDown(); ColorTexture = null; NormalMapTexture?.ShutDown(); NormalMapTexture = null; }
private void ReleaseTextures() { // Release the normal map texture object. NormalMapTexture?.ShutDown(); NormalMapTexture = null; // Release the color texture object. ColorTexture?.ShutDown(); ColorTexture = null; }
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; }