entry_noop.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright 2011-2023 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  4. */
  5. #include "entry_p.h"
  6. #if ENTRY_CONFIG_USE_NOOP
  7. namespace entry
  8. {
  9. const Event* poll()
  10. {
  11. return NULL;
  12. }
  13. const Event* poll(WindowHandle _handle)
  14. {
  15. BX_UNUSED(_handle);
  16. return NULL;
  17. }
  18. void release(const Event* _event)
  19. {
  20. BX_UNUSED(_event);
  21. }
  22. WindowHandle createWindow(int32_t _x, int32_t _y, uint32_t _width, uint32_t _height, uint32_t _flags, const char* _title)
  23. {
  24. BX_UNUSED(_x, _y, _width, _height, _flags, _title);
  25. WindowHandle handle = { UINT16_MAX };
  26. return handle;
  27. }
  28. void destroyWindow(WindowHandle _handle)
  29. {
  30. BX_UNUSED(_handle);
  31. }
  32. void setWindowPos(WindowHandle _handle, int32_t _x, int32_t _y)
  33. {
  34. BX_UNUSED(_handle, _x, _y);
  35. }
  36. void setWindowSize(WindowHandle _handle, uint32_t _width, uint32_t _height)
  37. {
  38. BX_UNUSED(_handle, _width, _height);
  39. }
  40. void setWindowTitle(WindowHandle _handle, const char* _title)
  41. {
  42. BX_UNUSED(_handle, _title);
  43. }
  44. void setWindowFlags(WindowHandle _handle, uint32_t _flags, bool _enabled)
  45. {
  46. BX_UNUSED(_handle, _flags, _enabled);
  47. }
  48. void toggleFullscreen(WindowHandle _handle)
  49. {
  50. BX_UNUSED(_handle);
  51. }
  52. void setMouseLock(WindowHandle _handle, bool _lock)
  53. {
  54. BX_UNUSED(_handle, _lock);
  55. }
  56. void* getNativeWindowHandle(WindowHandle _handle)
  57. {
  58. BX_UNUSED(_handle);
  59. return NULL;
  60. }
  61. void* getNativeDisplayHandle()
  62. {
  63. return NULL;
  64. }
  65. bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle)
  66. {
  67. return bgfx::NativeWindowHandleType::Default;
  68. }
  69. } // namespace entry
  70. int main(int _argc, const char* const* _argv)
  71. {
  72. return entry::main(_argc, _argv);
  73. }
  74. #endif // ENTRY_CONFIG_USE_NOOP