Milk/Gfx/Graphics.cs
/// <summary>
/// Draw a BufferObject with the given shader program and draw mode.
/// </summary>
/// <typeparam name="TVertex"></typeparam>
/// <param name="shaderProgram"></param>
/// <param name="buffer"></param>
/// <param name="mode"></param>
Draw a BufferObject with the given shader program and draw mode.
Draw a BufferObject with the given shader program and draw mode .
public void DrawBufferObject<TVertex>(ShaderProgram shaderProgram, BufferObject<TVertex> buffer, BufferDrawMode mode = BufferDrawMode.Points)
            where TVertex : unmanaged
        {
            shaderProgram.Use();
            buffer.Draw(mode);
        }
public void DrawBufferObject < TVertex > ( ShaderProgram shaderProgram , BufferObject < TVertex > buffer , BufferDrawMode mode = BufferDrawMode . Points ) where TVertex : unmanaged { shaderProgram . Use ( ) ; buffer . Draw ( mode ) ; }
Draw a BufferObject with the given shader program and draw mode.
Draw a BufferObject with the given shader program and draw mode .
shaderProgram
ShaderProgram
None
buffer
BufferObject<TVertex>
None
mode
BufferDrawMode
None
typeparam
None