Example #1
0
        public void Bind()
        {
#if !AXIOM_NO_GLES2_VAO_SUPPORT
#if GL_OES_vertex_array_object
            LogManager.Instance.Write("[GLES2] Binding VAO {0}.", _vao);
            GL.BindVertexArraysOES(1, &_vao);
            GLES2Config.CheckError(this);
#endif
#endif
        }
Example #2
0
        protected override void dispose(bool disposeManagedResources)
        {
            if (!IsDisposed)
            {
                if (disposeManagedResources)
                {
                }

#if !AXIOM_NO_GLES2_VAO_SUPPORT
#if GL_OES_vertex_array_object
                LogManager.Instance.Write("[GLES2] Deleting VAO {0}.", _vao);
                GL.DeleteVertexArraysOES(1, &_vao);
                GLES2Config.CheckError(this);
#endif
#endif
            }
            base.dispose(disposeManagedResources);
        }
Example #3
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
        }