Graphics.pkg 3.2 KB

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