public override void DrawInRect(GLKView view, CGRect rect) { GL.ClearColor(0.65f, 0.65f, 0.65f, 1f); GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); skyboxEffect.PrepareToDraw(); skyboxEffect.Draw(); GL.Oes.BindVertexArray(vertexArray); effect.PrepareToDraw(); GL.DrawArrays(BeginMode.Triangles, 0, Monkey.MeshVertexData.Length / 6); }
public void Draw(object sender, GLKViewDrawEventArgs args) { GL.ClearColor(0.65f, 0.65f, 0.65f, 1f); GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); skyboxEffect.PrepareToDraw(); skyboxEffect.Draw(); GL.Oes.BindVertexArray(vertexArray); effect.PrepareToDraw(); GL.DrawArrays(BeginMode.Triangles, 0, Monkey.MeshVertexData.Length / 6); }