Somehow I need to migrate from QuickFont for printing text. So I though of modifying an existing TextRendering code provided with OpenTK.
I have following queries-
- The above code has
public void Clear(Color color)method, which is changing background color. Instead of this, I want to use the existing background color of my application. (Un-commenting this is causing black background)
- In the above code
renderer.DrawStringis being called inside
OnLoadfunction. What if i have a dynamic text? May I call
OnRenderFrame? (Any performance degradation?)
- The above code has dirty region
Rectangle dirty_region. Will this create any rendering issue, after integrating it with my existing OpenTK application?
Please suggest me the required changes.