CreateDevice() 보호된 메소드

protected CreateDevice ( IntPtr windowHandle, int width, int height ) : void
windowHandle System.IntPtr
width int
height int
리턴 void
예제 #1
0
        public static GraphicsDeviceService AddRef(IntPtr windowHandle, int width, int height)
        {
            if (Interlocked.Increment(ref _refCount) == 1)
            {
                _instance.CreateDevice(windowHandle, width, height);
            }

            return(_instance);
        }
예제 #2
0
        public static GraphicsDeviceService AddRef(IntPtr windowHandle, int width, int height)
        {
            if (Interlocked.Increment(ref _refCount) == 1) {
                _instance = new GraphicsDeviceService();
                _instance.CreateDevice(windowHandle, width, height);
            }

            return _instance;
        }