entry_noop.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright 2011-2018 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
  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. } // namespace entry
  57. int main(int _argc, const char* const* _argv)
  58. {
  59. entry::main(_argc, _argv);
  60. }
  61. #endif // ENTRY_CONFIG_USE_NOOP