XNA: get screen's width and height

后端 未结 3 818
逝去的感伤
逝去的感伤 2020-12-29 01:34

how do i get the width and height of the entire screen in XNA?

3条回答
  •  清歌不尽
    2020-12-29 01:51

    GraphicsDevice.Viewport.Bounds - this returns Rectangle2D and it has parameters Width and Height.

提交回复
热议问题