public DrawingGL.VertexBufferObject2 GetVbo() { if (_vbo2 != null) { return(_vbo2); } _vbo2 = new VertexBufferObject2(); _vbo2.CreateBuffers(this.VertexCoords, this.IndexArray); return(_vbo2); }
public void DrawString(RenderVxFormattedString renderVx, double x, double y) { _glsx.LoadTexture1(_glBmp); _glsx.FontFillColor = painter.FontFillColor; DrawingGL.GLRenderVxFormattedString renderVxString1 = (DrawingGL.GLRenderVxFormattedString)renderVx; DrawingGL.VertexBufferObject2 vbo = renderVxString1.GetVbo(); vbo.Bind(); _glsx.DrawGlyphImageWithSubPixelRenderingTechnique4(renderVxString1.VertexCount, (float)x, (float)y); vbo.UnBind(); }