예제 #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);
        }