Esempio n. 1
0
 /// <summary>
 /// Sets the Data.
 /// </summary>
 /// <param name="indices">The Indices.</param>
 /// <remarks>Bind must be called in order to take effect.</remarks>
 public void SetData(ushort[] indices)
 {
     OpenGLInterops.BufferData(OpenGLInterops.GL_ELEMENT_ARRAY_BUFFER, indices, OpenGLInterops.GL_STATIC_DRAW);
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the Data.
 /// </summary>
 /// <param name="vertices">The Vertices.</param>
 /// <remarks>Bind must be called in order to take effect.</remarks>
 public void SetData(float[] vertices)
 {
     OpenGLInterops.BufferData(OpenGLInterops.GL_ARRAY_BUFFER, vertices, OpenGLInterops.GL_STATIC_DRAW);
 }