I need to draw lines and text in runtime, it can either be on a Hudsprite or directly on the SceneViewer.
How would I do that, and which way is faster?
Kind regards and thanks in advance,
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But still I need to be able to draw lines on a 2d canvas.
Is there a fast way to draw on a HUDSprite for example?
Do I have to draw on a bitmap and assign it to the HUDSprite every frame?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone!
I need to draw lines and text in runtime, it can either be on a Hudsprite or directly on the SceneViewer.
How would I do that, and which way is faster?
Kind regards and thanks in advance,
Daniel
I write HUD Text using this code:
Thanks! I will try this!
But still I need to be able to draw lines on a 2d canvas.
Is there a fast way to draw on a HUDSprite for example?
Do I have to draw on a bitmap and assign it to the HUDSprite every frame?
Hi Daniel, for drawing on canvas you can use TGLCanvas and a TGLDirectRender, see sample in Bench/Canvas
Cheers
Cool! That seems to be what I need. I will try it out.
Thanks again!!