mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-01 19:04:50 +00:00
30 lines
767 B
C#
30 lines
767 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using OpenTK.Graphics.OpenGL;
|
|
|
|
namespace PckStudio.Rendering
|
|
{
|
|
internal class DrawContext : IDisposable
|
|
{
|
|
internal readonly VertexArray VertexArray;
|
|
internal readonly IndexBuffer IndexBuffer;
|
|
internal readonly PrimitiveType PrimitiveType;
|
|
|
|
public DrawContext(VertexArray vertexArray, IndexBuffer indexBuffer, PrimitiveType primitiveType)
|
|
{
|
|
VertexArray = vertexArray;
|
|
IndexBuffer = indexBuffer;
|
|
PrimitiveType = primitiveType;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
VertexArray.Dispose();
|
|
IndexBuffer.Dispose();
|
|
}
|
|
}
|
|
}
|