示例#1
0
文件: GL.cs 项目: cesmec/CoreLoader
        public static uint CreateVertexArray()
        {
            uint vao;

            GlNative.CreateVertexArrays(1, &vao);
            return(vao);
        }
示例#2
0
文件: GL.cs 项目: cesmec/CoreLoader
        public static uint[] CreateVertexArrays(int count)
        {
            var vaos = new uint[count];

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

            return(vaos);
        }