constants.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2013 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. $iOS::constant::iPhone = 0;
  23. $iOS::constant::iPad = 1;
  24. $iOS::constant::iPhone5 = 2;
  25. $iOS::constant::Landscape = 0;
  26. $iOS::constant::Portrait = 1;
  27. $iOS::constant::ResolutionFull = 0;
  28. $iOS::constant::ResolutionSmall = 1;
  29. $iOS::constant::iPhoneWidth = 480;
  30. $iOS::constant::iPhoneHeight = 320;
  31. $iOS::constant::iPhone4Width = 960;
  32. $iOS::constant::iPhone4Height = 640;
  33. $iOS::constant::iPadWidth = 1024;
  34. $iOS::constant::iPadHeight = 768;
  35. $iOS::constant::NewiPadWidth = 2048;
  36. $iOS::constant::NewiPadHeight = 1536;
  37. $iOS::constant::iPhone5Width = 1136;
  38. $iOS::constant::iPhone5Height = 640;
  39. $iOS::constant::OrientationUnknown = 0;
  40. $iOS::constant::OrientationLandscapeLeft = 1;
  41. $iOS::constant::OrientationLandscapeRight = 2;
  42. $iOS::constant::OrientationPortrait = 3;
  43. $iOS::constant::OrientationPortraitUpsideDown = 4;