/// <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) { }
/// <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; }
/// <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) { }
/// <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; }
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; }