Exemple #1
0
 /// <summary>
 /// Draws the model.
 /// </summary>
 /// <param name="meshCallback">Callback that allows to set shader parameters</param>
 /// <param name="drawPatches">Determines if OpenGL will draw patches or triangles.</param>
 public void Draw(MeshCallbackDelegate meshCallback, bool drawPatches)
 {
     if (this.meshes == null)
     {
         return;
     }
     GL.PatchParameter(PatchParameterInt.PatchVertices, 3);
     foreach (var mesh in this.meshes)
     {
         if (meshCallback != null)
         {
             meshCallback(mesh);
         }
         mesh.Draw(drawPatches);
     }
 }
Exemple #2
0
 /// <summary>
 /// Draws the model.
 /// </summary>
 /// <param name="meshCallback">Callback that allows to set shader parameters</param>
 public void Draw(MeshCallbackDelegate meshCallback)
 {
     this.Draw(meshCallback, false);
 }