OpenTK Text Animation

Does anyone know how to do this or where to find good examples for scrolling (animating) 2D text using an OpenTK structure. I need something like the lower (upper) scroll tickers on the news channels.

Thank.

+3
source share
1 answer

There are many possible approaches to text rendering. Simplest: use System.Drawing to render text in System.Drawing.Bitmap. Then load this bitmap into the OpenGL texture and split it into a square for rendering. Animate the text by moving this square and updating the bitmap / texture whenever the text changes.

: OpenTK, : http://opentk.svn.sourceforge.net/viewvc/opentk/trunk/Source/Examples/OpenGL/1.x/TextRendering.cs?revision=3063&view=markup

TextRenderer , . .

+3

Source: https://habr.com/ru/post/1785625/


All Articles