Exemplo n.º 1
0
        public GPUTexture CreateTexture()
        {
            GPUTexture texture = new GPUTexture(Gl.glGenTexture());

            _textures.Add(texture);
            return(texture);
        }
Exemplo n.º 2
0
 public void AttachTexture(GPUTexture texture, Attachments att)
 {
     AttachTexture(texture, att, 0);
 }
Exemplo n.º 3
0
 public void AttachTexture(GPUTexture texture, Attachments att, int level)
 {
     Gl.glNamedFramebufferTexture(_handle, (int)att, texture, level);
 }
Exemplo n.º 4
0
 public void DeleteTexture(GPUTexture texture)
 {
     Gl.glDeleteTextures(1, new uint[] { texture });
     _textures.Remove(texture);
 }