InitD3D() private method

private InitD3D ( IntPtr hWnd, Int32 width = 1280, Int32 height = 720 ) : Int32
hWnd System.IntPtr
width System.Int32
height System.Int32
return System.Int32
Esempio n. 1
0
        public Main()
        {
            InitializeComponent();
            YamangDll.InitD3D(this.RenderTarget.Handle);
            YamangDll.HeightMapTextureImport(this.RenderTarget.Handle, heightMap, mapTexture);
//             YamangDll.MapToolTextureImport(this.RenderTarget.Handle, mapTexture0);
//             YamangDll.MapToolTextureImport(this.RenderTarget.Handle, mapTexture1);
//             YamangDll.MapToolTextureImport(this.RenderTarget.Handle, mapTexture2);
//             YamangDll.MapToolTextureImport(this.RenderTarget.Handle, mapTexture3);
//             YamangDll.MapToolTextureImport(this.RenderTarget.Handle, mapTexture4);
            Render();
        }
Esempio n. 2
0
 public Main()
 {
     InitializeComponent();
     YamangDll.InitD3D(this.Window.Handle);
     Render();
 }