UltimateZoneBuilder/Source/Rendering/Renderer.cs

63 lines
1 KiB
C#
Raw Normal View History

2007-09-24 19:54:47 +00:00
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace CodeImp.DoomBuilder.Rendering
{
internal abstract class Renderer : IDisposable
{
#region ================== Constants
#endregion
#region ================== Variables
// Disposing
protected bool isdisposed = false;
#endregion
#region ================== Properties
// Disposing
public bool IsDisposed { get { return isdisposed; } }
#endregion
#region ================== Constructor / Disposer
// Constructor
public Renderer()
{
// Initialize
// We have no destructor
GC.SuppressFinalize(this);
}
// Diposer
public virtual void Dispose()
{
// Not already disposed?
if(!isdisposed)
{
// Clean up
// Done
isdisposed = true;
}
}
#endregion
#region ================== Methods
// This is called when the graphics need to be reset
public virtual void Reset() { }
#endregion
}
}