Exemple #1
0
        public GPUTexture CreateTexture()
        {
            GPUTexture texture = new GPUTexture(Gl.glGenTexture());

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