Skip to content

Latest commit

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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

Updated to .Net 6 and OpenTK 4.7.5. See the dotnet-framework branch for the old version

How to use

Initialize your vertex buffer

varconfig=newQFontBuilderConfiguration(){UseVertexBuffer=true,TextGenerationRenderHint=TextGenerationRenderHint.SystemDefault};QFontqfont=newQFont(font,config);

Print to the vertex buffer

qfont.PrintToVBO("i love",newVector3(0,0,0),Color.Red);qfont.PrintToVBO("quickfont",newVector3(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. It has since been forked by OpCon. Please follow the link below:

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages