What's the intended way to draw dynamic text? #50
-
I want to draw an FPS counter in the corner of the program. I could call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The first approach is the naive way of doing it. The intented way here is for you to write your own character drawing implementation. A fancy implementation would also approriately resize the string image. |
Beta Was this translation helpful? Give feedback.
The first approach is the naive way of doing it.
The intented way here is for you to write your own character drawing implementation.
You would use
mlx_put_string()
to init the string image and then your own character drawing function update the string if necessary.A fancy implementation would also approriately resize the string image.