entry_noop.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. BX_UNUSED(_handle);
  68. return bgfx::NativeWindowHandleType::Default;
  69. }
  70. } // namespace entry
  71. int main(int _argc, const char* const* _argv)
  72. {
  73. return entry::main(_argc, _argv);
  74. }
  75. #endif // ENTRY_CONFIG_USE_NOOP