Skip to content
forked from swax/QuickFont

Fork of James Lohr's font library for OpenTK with added vertex buffer support

Notifications You must be signed in to change notification settings

Livila/QuickFont

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Using Vertex Buffers Initialize your vertex buffer

var config = new QFontBuilderConfiguration() 
{ 
  UseVertexBuffer = true,
  TextGenerationRenderHint = TextGenerationRenderHint.SystemDefault 
};

QFont qfont = new QFont(font, config);

Print to the vertex buffer

qfont.PrintToVBO("i love", new Vector3(0, 0, 0), Color.Red);
qfont.PrintToVBO("quickfont", new Vector3(0, 10, 0), Color.Blue);

When you've printed everything call Load

qfont.LoadVBOs();

Then draw it

qfont.DrawVBOs();

Keep calling DrawVBOs() each frame. When something needs to change, reset the VBO

qfont.ResetVBOs();

Then repeat the process: Print, Load Draw.

About

Fork of James Lohr's font library for OpenTK with added vertex buffer support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%