Graphics.pkg 2.8 KB

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