Пример #1
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 /// <filterpriority>2</filterpriority>
 public virtual void Dispose()
 {
     if (CTT != null)
     {
         CTT.ShutDown();
     }
     GC.SuppressFinalize(this);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RendererBase"/> class.
 /// </summary>
 protected RendererBase()
 {
     //rnd = new Random();
     m_RenderOffset = Point.Zero;
     m_Scale = 1.0f;
     if (CTT != null)
         CTT.Initialize();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Base"/> class.
 /// </summary>
 protected Base()
 {
     //rnd = new Random();
     m_RenderOffset = Point.Empty;
     Scale          = 1.0f;
     if (CTT != null)
     {
         CTT.Initialize();
     }
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Renderer"/> class.
 /// </summary>
 protected Renderer()
 {
     //rnd = new Random();
     m_RenderOffset = new Vector2i(0, 0);
     Scale          = 1.0f;
     if (CTT != null)
     {
         CTT.Initialize();
     }
 }