public GPUTexture CreateTexture() { GPUTexture texture = new GPUTexture(Gl.glGenTexture()); _textures.Add(texture); return(texture); }
public void AttachTexture(GPUTexture texture, Attachments att) { AttachTexture(texture, att, 0); }
public void AttachTexture(GPUTexture texture, Attachments att, int level) { Gl.glNamedFramebufferTexture(_handle, (int)att, texture, level); }
public void DeleteTexture(GPUTexture texture) { Gl.glDeleteTextures(1, new uint[] { texture }); _textures.Remove(texture); }