Пример #1
0
        public GLES2VertexDeclaration()
        {
            _vao = 0;

#if !AXIOM_NO_GLES2_VAO_SUPPORT
#if GL_OES_vertex_array_object
            GL.GenVertexArraysOES(1, &_vao);
            LogManager.Instance.Write("[GLES2] Created VAO {0}.", _vao);

            GLES2Config.CheckError(this);

            if (_vao != 0)
            {
                throw new AxiomException("[GLES2] Cannot create GL ES Vertex Array Object");
            }
#endif
#endif
        }