コード例 #1
0
        public Mesh[] LoadOBJX(string path)
        {
            int outAmount;
            IntPtr arrayPointer = IntPtr.Zero;

            LoadMeshArray(path, ref arrayPointer, out outAmount);

            IntPtr[] outArray = new IntPtr[outAmount];
            Marshal.Copy(arrayPointer, outArray, 0, outAmount);

            Mesh[] meshArray = new Mesh[outAmount];
            for (int i = 0; i < outAmount; i++)
            {
                Console.WriteLine(" MESHNAME = " + GetMeshName(outArray[i]) + " \n");
                meshArray[i] = new Mesh(outArray[i], GetMeshName(outArray[i]));
            }

            return meshArray;
        }
コード例 #2
0
 public void RenderMesh(Mesh mesh, DeviceManager deviceManager, Camera camera, ShaderObject shaderObject)
 {
     Render(mesh.GetHandle(), deviceManager.GetDeviceManagerHandle(), camera.GetHandle(), shaderObject.GetHandle());
 }