Draw order in XNA
Posted
by
Petr Abdulin
on Game Development
See other posts from Game Development
or by Petr Abdulin
Published on 2012-03-30T08:42:36Z
Indexed on
2012/03/30
11:42 UTC
Read the original article
Hit count: 300
XNA
It is possible to set draw order of a DrawableGameComponent
by setting DrawOrder
property. But is it possible to set draw order of "main" Game
class?
I have 2 DrawableGameComponents, and Draw method of a main Game class is called first, while I want it to be the last. Should I just mode all "main" draw code to another component and set it DrawOrder
?
Answer: seems like I'm just confused myself a little. Black on black, that's why I didn't saw it. Main Draw
is called last, as expected.
© Game Development or respective owner