What is the correct way to make draw calls from outside the hud class?
I've adapted the example HUD from the content examples to draw a progress bar as my player character uses an object. This is a little messy, but works perfectly.
However, it's specific to this function, and it's activated by constantly checking a bool to see if I wish to draw this specific bar in this specific place.
What I want to do is create a more generic function - one that I can call from anything that would require a bar above it. Like this:
But, of course I can't do it this way, because this must be called via the 'Receive draw HUD' event.
What is the correct way to reach this kind of functionality?
asked Oct 19 '14 at 08:21 PM in Rendering
Follow this question
Once you sign in you will be able to subscribe for any updates here