Esempio n. 1
0
        public static uint CreateTexture(uint target)
        {
            uint texture;

            GlNative.CreateTextures(target, 1, &texture);
            return(texture);
        }
Esempio n. 2
0
        public static uint CreateFramebuffer()
        {
            uint framebuffer;

            GlNative.CreateFramebuffers(1, &framebuffer);
            return(framebuffer);
        }
Esempio n. 3
0
        public static uint CreateVertexArray()
        {
            uint vao;

            GlNative.CreateVertexArrays(1, &vao);
            return(vao);
        }
Esempio n. 4
0
        public static uint CreateRenderbuffer()
        {
            uint renderbuffer;

            GlNative.CreateRenderbuffers(1, &renderbuffer);
            return(renderbuffer);
        }
Esempio n. 5
0
        public static uint CreateBuffer()
        {
            uint buffer;

            GlNative.CreateBuffers(1, &buffer);
            return(buffer);
        }
Esempio n. 6
0
        public static uint[] CreateVertexArrays(int count)
        {
            var vaos = new uint[count];

            fixed(uint *firstVao = vaos)
            GlNative.CreateVertexArrays(count, firstVao);

            return(vaos);
        }
Esempio n. 7
0
        public static uint[] CreateRenderbuffers(int count)
        {
            var renderbuffers = new uint[count];

            fixed(uint *firstRenderbuffer = renderbuffers)
            GlNative.CreateRenderbuffers(count, firstRenderbuffer);

            return(renderbuffers);
        }
Esempio n. 8
0
        public static uint[] CreateBuffers(int count)
        {
            var buffers = new uint[count];

            fixed(uint *firstBuffer = buffers)
            GlNative.CreateBuffers(count, firstBuffer);

            return(buffers);
        }
Esempio n. 9
0
        public static uint[] CreateFramebuffers(int count)
        {
            var framebuffers = new uint[count];

            fixed(uint *firstFramebuffer = framebuffers)
            GlNative.CreateBuffers(count, firstFramebuffer);

            return(framebuffers);
        }
Esempio n. 10
0
        public static uint[] CreateTextures(uint target, int count)
        {
            var textures = new uint[count];

            fixed(uint *firstTexture = textures)
            GlNative.CreateTextures(target, count, firstTexture);

            return(textures);
        }
Esempio n. 11
0
 public static void DeleteVertexArray(uint vao)
 {
     GlNative.DeleteVertexArrays(1, &vao);
 }
Esempio n. 12
0
 public static void DeleteBuffer(uint buffer)
 {
     GlNative.DeleteBuffers(1, &buffer);
 }
Esempio n. 13
0
 public static void DeleteBuffers(uint[] buffers)
 {
     fixed(uint *firstBuffer = buffers)
     GlNative.DeleteBuffers(buffers.Length, firstBuffer);
 }
Esempio n. 14
0
 public static void DeleteTexture(uint texture)
 {
     GlNative.DeleteTextures(1, &texture);
 }
Esempio n. 15
0
 public static void DeleteTextures(uint[] textures)
 {
     fixed(uint *firstTexture = textures)
     GlNative.DeleteTextures(textures.Length, firstTexture);
 }
Esempio n. 16
0
 public static void DeleteFramebuffer(uint framebuffer)
 {
     GlNative.DeleteFramebuffers(1, &framebuffer);
 }
Esempio n. 17
0
        public static void ShaderSource(uint shader, string source)
        {
            var length = source.Length;

            GlNative.ShaderSource(shader, 1, new[] { source }, &length);
        }
Esempio n. 18
0
 public static void DeleteVertexArrays(uint[] vaos)
 {
     fixed(uint *firstVao = vaos)
     GlNative.DeleteVertexArrays(vaos.Length, firstVao);
 }
Esempio n. 19
0
 public static void DeleteRenderbuffers(uint[] renderbuffers)
 {
     fixed(uint *firstRenderbuffer = renderbuffers)
     GlNative.DeleteRenderbuffers(renderbuffers.Length, firstRenderbuffer);
 }
Esempio n. 20
0
 public static void DeleteRenderbuffer(uint renderbuffer)
 {
     GlNative.DeleteRenderbuffers(1, &renderbuffer);
 }
Esempio n. 21
0
 public static void DeleteFramebuffers(uint[] framebuffers)
 {
     fixed(uint *firstFramebuffer = framebuffers)
     GlNative.DeleteBuffers(framebuffers.Length, firstFramebuffer);
 }