Rename Buffer to GLBuffer to prevent name conflict.

This commit is contained in:
2017-02-26 23:17:21 -05:00
parent df6965c003
commit a7c2f5bb29
4 changed files with 16 additions and 23 deletions

View File

@@ -8,12 +8,12 @@ using OpenTK.Graphics.OpenGL4;
namespace Diamond.Buffers
{
public class Buffer : GLObject
public class GLBuffer : GLObject
{
public readonly BufferTarget Target;
public readonly BufferUsageHint Usage;
public Buffer(BufferTarget target, BufferUsageHint usage = BufferUsageHint.StaticDraw)
public GLBuffer(BufferTarget target, BufferUsageHint usage = BufferUsageHint.StaticDraw)
: base((uint) GL.GenBuffer())
{
Target = target;

View File

@@ -44,7 +44,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Buffers\Buffer.cs" />
<Compile Include="Buffers\GLBuffer.cs" />
<Compile Include="Buffers\SubArray.cs" />
<Compile Include="Buffers\VertexDataAttribute.cs" />
<Compile Include="GLObject.cs" />

View File

@@ -4,7 +4,6 @@ using System.Runtime.InteropServices;
using System.Text;
using Diamond.Buffers;
using OpenTK.Graphics.OpenGL4;
using Buffer = Diamond.Buffers.Buffer;
namespace Diamond.Shaders
{
@@ -88,7 +87,7 @@ namespace Diamond.Shaders
return id;
}
public void SetAttribPointers(Buffer buff, Type vertexType)
public void SetAttribPointers(GLBuffer buff, Type vertexType)
{
if (vertexType.GetCustomAttributes(typeof(VertexDataAttribute), false).Length == 0)
{