public override void Draw(MapGraphics graphics)
        {
            CheckUpdateTriangle();

            GL.BindTexture(TextureTarget.Texture2D, graphics.Utilities.WhiteTexture);
            GL.BindBuffer(BufferTarget.ArrayBuffer, _vertexBuffer);
            graphics.BindVertices();
            GL.DrawArrays(PrimitiveType.Triangles, 0, _loadedVertices.Length);
        }
Exemplo n.º 2
0
        public override void Draw(MapGraphics graphics)
        {
            CheckUpdateImage(graphics);

            if (_imageTexID == -1)
            {
                return;
            }

            GL.BindTexture(TextureTarget.Texture2D, _imageTexID);
            GL.BindBuffer(BufferTarget.ArrayBuffer, _vertexBuffer);
            graphics.BindVertices();
            GL.DrawArrays(PrimitiveType.Triangles, 0, _vertices.Length);
        }