16 lines
358 B
C#
16 lines
358 B
C#
using Dashboard.Drawing;
|
|
|
|
namespace Dashboard.OpenGL.Drawing
|
|
{
|
|
public class GLShader(GLDeviceContext context, int handle) : IShader
|
|
{
|
|
public GLDeviceContext Context { get; } = context;
|
|
public int Handle { get; } = handle;
|
|
|
|
public void Dispose()
|
|
{
|
|
Context.Collector.DeleteProgram(Handle);
|
|
}
|
|
}
|
|
}
|