Graphics.pkg 3.3 KB

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