YamangTools.YamangDll.HeightMapTextureImport C# (CSharp) Method

HeightMapTextureImport() private method

private HeightMapTextureImport ( IntPtr hWnd, [ heightMap, [ mapTexture ) : Int32
hWnd System.IntPtr
heightMap [
mapTexture [
return System.Int32
        public static extern Int32 HeightMapTextureImport(IntPtr hWnd, [MarshalAs(UnmanagedType.LPWStr)] String heightMap, [MarshalAs(UnmanagedType.LPWStr)] String mapTexture);

Usage Example

示例#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();
        }