Hello folks,
I'm trying to render a super simple GUI object (like a square that "overlaps" the actual game scene). A GUI object should always stay on screen, overlapping any other object and, most important, must stand still where it is.
How can I achieve so?
I think a solution could be to render the object without setting up the zbuffer. So that object will always appear on screen. But I'm not sure that it would work. Also, I would need to create another device context to achieve so.
Another solution could be to manually edit the view matrix so the object stands still in place. But is it even possible?
I know the "best" solution is to use an external library, but I would like to avoid it. Also, I don't really need it. I just need a simple square that overlaps the game scene anyway.
Thanks in advance.