Graphics.pkg 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. bool ToggleFullscreen();
  11. void Close();
  12. bool TakeScreenShot(Image& destImage);
  13. bool IsInitialized() const;
  14. void* GetExternalWindow() const;
  15. const String& GetWindowTitle() const;
  16. IntVector2 GetWindowPosition() const;
  17. int GetWidth() const;
  18. int GetHeight() const;
  19. int GetMultiSample() const;
  20. bool GetFullscreen() const;
  21. bool GetResizable() const;
  22. bool GetVSync() const;
  23. bool GetTripleBuffer() const;
  24. bool GetSRGB() const;
  25. bool IsDeviceLost() const;
  26. unsigned GetNumPrimitives() const;
  27. unsigned GetNumBatches() const;
  28. unsigned GetDummyColorFormat() const;
  29. unsigned GetShadowMapFormat() const;
  30. unsigned GetHiresShadowMapFormat() const;
  31. bool GetSM3Support() const;
  32. bool GetInstancingSupport() const;
  33. bool GetLightPrepassSupport() const;
  34. bool GetDeferredSupport() const;
  35. bool GetHardwareShadowSupport() const;
  36. bool GetStreamOffsetSupport() const;
  37. bool GetSRGBSupport() const;
  38. bool GetSRGBWriteSupport() const;
  39. IntVector2 GetDesktopResolution() const;
  40. static unsigned GetRGBFormat();
  41. tolua_readonly tolua_property__is_set bool initialized;
  42. tolua_property__get_set String windowTitle;
  43. tolua_property__get_set IntVector2 windowPosition;
  44. tolua_readonly tolua_property__get_set int width;
  45. tolua_readonly tolua_property__get_set int height;
  46. tolua_readonly tolua_property__get_set int multiSample;
  47. tolua_readonly tolua_property__get_set bool fullscreen;
  48. tolua_readonly tolua_property__get_set bool resizable;
  49. tolua_readonly tolua_property__get_set bool vSync;
  50. tolua_readonly tolua_property__get_set bool tripleBuffer;
  51. tolua_property__get_set bool sRGB;
  52. tolua_readonly tolua_property__is_set bool deviceLost;
  53. tolua_readonly tolua_property__get_set unsigned numPrimitives;
  54. tolua_readonly tolua_property__get_set unsigned numBatches;
  55. tolua_readonly tolua_property__get_set unsigned dummyColorFormat;
  56. tolua_readonly tolua_property__get_set unsigned shadowMapFormat;
  57. tolua_readonly tolua_property__get_set unsigned hiresShadowMapFormat;
  58. tolua_readonly tolua_property__get_set bool sM3Support;
  59. tolua_readonly tolua_property__get_set bool instancingSupport;
  60. tolua_readonly tolua_property__get_set bool lightPrepassSupport;
  61. tolua_readonly tolua_property__get_set bool deferredSupport;
  62. tolua_readonly tolua_property__get_set bool hardwareShadowSupport;
  63. tolua_readonly tolua_property__get_set bool streamOffsetSupport;
  64. tolua_readonly tolua_property__get_set bool sRGBSupport;
  65. tolua_readonly tolua_property__get_set bool sRGBWriteSupport;
  66. tolua_readonly tolua_property__get_set IntVector2 desktopResolution;
  67. };