public void Dispose( ) { this.wHandle = IntPtr.Zero; this.windowEvents = null; GC.SuppressFinalize(this); }
public DirectX3DWindow( ) { this.windowEvents = new USER32.WndProc(this.WndEvents); this.sWidth = USER32.GetSystemMetrics(USER32.SM_CXSCREEN); this.sHeight = USER32.GetSystemMetrics(USER32.SM_CYSCREEN); if (KERNEL32.QueryPerformanceFrequency(ref ticksPerSecond)) { this.ticksPerFrame = (this.ticksPerSecond / this.maxFPS); KERNEL32.QueryPerformanceCounter(ref oldTime); } else { throw new InvalidOperationException("[KERNEL32.QueryPerformanceCounter] Your CPU hardware doesn't support QPF timer."); } }