Exemplo n.º 1
0
 /// <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)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }