/// <summary>
 /// Constructor to set primitive drawing mode & graphics card BufferUsage Hint
 /// </summary>
 /// <param name="drawingMode"></param>
 /// <param name="graphicsCardBufferUsageHint"></param>
 public SingleMaterialVBO(OpenTK.Graphics.OpenGL.PrimitiveType drawingMode, OpenTK.Graphics.OpenGL.BufferUsageHint graphicsCardBufferUsageHint)
     : base(drawingMode, graphicsCardBufferUsageHint)
 {
 }
Exemple #2
0
 /// <summary>
 /// Constructor to set primitive drawing mode & graphics card BufferUsage Hint
 /// </summary>
 /// <param name="drawingMode"></param>
 /// <param name="graphicsCardBufferUsageHint"></param>
 public AbstractMesh(OpenTK.Graphics.OpenGL.PrimitiveType drawingMode, OpenTK.Graphics.OpenGL.BufferUsageHint graphicsCardBufferUsageHint = BufferUsageHint.StaticDraw)
 {
     DrawingMode = drawingMode;
     GraphicsCardBufferUsageHint = graphicsCardBufferUsageHint;
 }
Exemple #3
0
 /// <summary>
 /// Constructor to set primitive drawing mode & graphics card BufferUsage Hint
 /// </summary>
 /// <param name="drawingMode"></param>
 /// <param name="graphicsCardBufferUsageHint"></param>
 public CompleteVBO(OpenTK.Graphics.OpenGL.PrimitiveType drawingMode, OpenTK.Graphics.OpenGL.BufferUsageHint graphicsCardBufferUsageHint)
     : base(drawingMode, graphicsCardBufferUsageHint)
 {
 }
Exemple #4
0
 /// <summary>
 /// default constructor in base abstract class sets Triangles as the default drawing mode
 /// </summary>
 public AbstractMesh()
 {
     DrawingMode = OpenTK.Graphics.OpenGL.PrimitiveType.Triangles;
     GraphicsCardBufferUsageHint = BufferUsageHint.StaticDraw;
 }
Exemple #5
0
 public void BufferData(OpenTK.Graphics.OpenGL.BufferTarget targ, IntPtr length, float[] data, OpenTK.Graphics.OpenGL.BufferUsageHint hint)
 {
     if (!buffers.ContainsKey(activeBuffer))
     {
         throw new ArgumentException();
     }
     buffers[activeBuffer] = data;
 }