Graphics.pkg 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. $#include "Graphics.h"
  2. class Graphics : public Object
  3. {
  4. void SetWindowTitle(const String windowTitle);
  5. bool SetMode(int width, int height, bool fullscreen, bool resizable, bool vsync, bool tripleBuffer, int multiSample);
  6. bool SetMode(int width, int height);
  7. void SetSRGB(bool enable);
  8. bool ToggleFullscreen();
  9. void Close();
  10. bool TakeScreenShot(Image& destImage);
  11. bool IsInitialized() const;
  12. void* GetExternalWindow() const;
  13. const String& GetWindowTitle() const;
  14. int GetWidth() const;
  15. int GetHeight() const;
  16. int GetMultiSample() const;
  17. bool GetFullscreen() const;
  18. bool GetResizable() const;
  19. bool GetVSync() const;
  20. bool GetTripleBuffer() const;
  21. bool GetSRGB() const;
  22. bool IsDeviceLost() const;
  23. unsigned GetNumPrimitives() const;
  24. unsigned GetNumBatches() const;
  25. unsigned GetDummyColorFormat() const;
  26. unsigned GetShadowMapFormat() const;
  27. unsigned GetHiresShadowMapFormat() const;
  28. bool GetSM3Support() const;
  29. bool GetInstancingSupport() const;
  30. bool GetLightPrepassSupport() const;
  31. bool GetDeferredSupport() const;
  32. bool GetHardwareShadowSupport() const;
  33. bool GetStreamOffsetSupport() const;
  34. bool GetSRGBSupport() const;
  35. bool GetSRGBWriteSupport() const;
  36. static unsigned GetRGBFormat();
  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. };