Example #1
0
        public static uint CreateTexture(uint target)
        {
            uint texture;

            GlNative.CreateTextures(target, 1, &texture);
            return(texture);
        }
Example #2
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);
        }