示例#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)
 {
 }
示例#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;
 }
示例#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)
 {
 }
示例#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;
 }
示例#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;
 }