Hello Guest

Author Topic: 'Reading' actual display size  (Read 2901 times)

DemiGoth

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 45
    • View Profile
'Reading' actual display size
« on: January 27, 2014, 06:31:28 am »
Is there a way to read the actual display size? With my game getting ready for testing and porting to Android, I do need to move stuff (UI elements) along the display and knowing the actual size of the display would help greatly with it.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 'Reading' actual display size
« Reply #1 on: January 27, 2014, 12:36:53 pm »
If you're using the tk2dCamera, t2kdCamera.ScreenExtents gives you the extents of the camera. An example of using this information is in tk2dCameraAnchor.UpdateTransform.