public void SetTransform(TransformState types, Matrix mat) { switch (types) { case TransformState.World: D3D9Device.SetTransform(D3D9.TransformState.World, mat); break; case TransformState.Sprite: d3d9Sprite.Transform = mat; break; } }
public override void Destroy() { if (this._device != null) { this._device.DetachRenderWindow(this); this._device = null; } if (this._windowHandle != null && !this._isExternal) { WindowEventMonitor.Instance.UnregisterWindow(this); this._windowHandle.SafeDispose(); } this._windowHandle = null; active = false; this._isClosed = true; }