Graphics.pkg 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. $#include "Graphics.h"
  2. class Graphics : public Object
  3. {
  4. void SetWindowTitle(const String windowTitle);
  5. void SetWindowIcon(Image* windowIcon);
  6. void SetWindowPosition(const IntVector2& position);
  7. void SetWindowPosition(int x, int y);
  8. bool SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool vsync, bool tripleBuffer, int multiSample);
  9. bool SetMode(int width, int height);
  10. void SetSRGB(bool enable);
  11. void SetFlushGPU(bool enable);
  12. bool ToggleFullscreen();
  13. void Maximize();
  14. void Minimize();
  15. void Close();
  16. bool TakeScreenShot(Image& destImage);
  17. bool IsInitialized() const;
  18. void* GetExternalWindow() const;
  19. const String GetWindowTitle() const;
  20. IntVector2 GetWindowPosition() const;
  21. int GetWidth() const;
  22. int GetHeight() const;
  23. int GetMultiSample() const;
  24. bool GetFullscreen() const;
  25. bool GetResizable() const;
  26. bool GetBorderless() const;
  27. bool GetVSync() const;
  28. bool GetTripleBuffer() const;
  29. bool GetSRGB() const;
  30. bool GetFlushGPU() const;
  31. bool IsDeviceLost() const;
  32. unsigned GetNumPrimitives() const;
  33. unsigned GetNumBatches() const;
  34. unsigned GetDummyColorFormat() const;
  35. unsigned GetShadowMapFormat() const;
  36. unsigned GetHiresShadowMapFormat() const;
  37. bool GetSM3Support() const;
  38. bool GetInstancingSupport() const;
  39. bool GetLightPrepassSupport() const;
  40. bool GetDeferredSupport() const;
  41. bool GetHardwareShadowSupport() const;
  42. bool GetStreamOffsetSupport() const;
  43. bool GetSRGBSupport() const;
  44. bool GetSRGBWriteSupport() const;
  45. IntVector2 GetDesktopResolution() const;
  46. static unsigned GetRGBFormat();
  47. tolua_readonly tolua_property__is_set bool initialized;
  48. tolua_property__get_set String windowTitle;
  49. tolua_property__get_set IntVector2 windowPosition;
  50. tolua_readonly tolua_property__get_set int width;
  51. tolua_readonly tolua_property__get_set int height;
  52. tolua_readonly tolua_property__get_set int multiSample;
  53. tolua_readonly tolua_property__get_set bool fullscreen;
  54. tolua_readonly tolua_property__get_set bool resizable;
  55. tolua_readonly tolua_property__get_set bool borderless;
  56. tolua_readonly tolua_property__get_set bool vSync;
  57. tolua_readonly tolua_property__get_set bool tripleBuffer;
  58. tolua_property__get_set bool sRGB;
  59. tolua_property__get_set bool flushGPU;
  60. tolua_readonly tolua_property__is_set bool deviceLost;
  61. tolua_readonly tolua_property__get_set unsigned numPrimitives;
  62. tolua_readonly tolua_property__get_set unsigned numBatches;
  63. tolua_readonly tolua_property__get_set unsigned dummyColorFormat;
  64. tolua_readonly tolua_property__get_set unsigned shadowMapFormat;
  65. tolua_readonly tolua_property__get_set unsigned hiresShadowMapFormat;
  66. tolua_readonly tolua_property__get_set bool sM3Support;
  67. tolua_readonly tolua_property__get_set bool instancingSupport;
  68. tolua_readonly tolua_property__get_set bool lightPrepassSupport;
  69. tolua_readonly tolua_property__get_set bool deferredSupport;
  70. tolua_readonly tolua_property__get_set bool hardwareShadowSupport;
  71. tolua_readonly tolua_property__get_set bool streamOffsetSupport;
  72. tolua_readonly tolua_property__get_set bool sRGBSupport;
  73. tolua_readonly tolua_property__get_set bool sRGBWriteSupport;
  74. tolua_readonly tolua_property__get_set IntVector2 desktopResolution;
  75. };