GLObject implements IDisposable

This commit is contained in:
2017-02-26 00:33:29 -05:00
parent b30f79acda
commit ce3b5cce6c
6 changed files with 102 additions and 50 deletions

View File

@@ -17,6 +17,11 @@ namespace hexworld.Util
{
}
protected override void Delete()
{
GL.DeleteProgram(Id);
}
public void Attach(Shader shader) => GL.AttachShader(Id, shader.Id);
public bool LinkStatus