entry_noop.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright 2011-2017 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. #include <stdio.h>
  8. namespace entry
  9. {
  10. const Event* poll()
  11. {
  12. return NULL;
  13. }
  14. const Event* poll(WindowHandle _handle)
  15. {
  16. BX_UNUSED(_handle);
  17. return NULL;
  18. }
  19. void release(const Event* _event)
  20. {
  21. BX_UNUSED(_event);
  22. }
  23. WindowHandle createWindow(int32_t _x, int32_t _y, uint32_t _width, uint32_t _height, uint32_t _flags, const char* _title)
  24. {
  25. BX_UNUSED(_x, _y, _width, _height, _flags, _title);
  26. WindowHandle handle = { UINT16_MAX };
  27. return handle;
  28. }
  29. void destroyWindow(WindowHandle _handle)
  30. {
  31. BX_UNUSED(_handle);
  32. }
  33. void setWindowPos(WindowHandle _handle, int32_t _x, int32_t _y)
  34. {
  35. BX_UNUSED(_handle, _x, _y);
  36. }
  37. void setWindowSize(WindowHandle _handle, uint32_t _width, uint32_t _height)
  38. {
  39. BX_UNUSED(_handle, _width, _height);
  40. }
  41. void setWindowTitle(WindowHandle _handle, const char* _title)
  42. {
  43. BX_UNUSED(_handle, _title);
  44. }
  45. void toggleWindowFrame(WindowHandle _handle)
  46. {
  47. BX_UNUSED(_handle);
  48. }
  49. void toggleFullscreen(WindowHandle _handle)
  50. {
  51. BX_UNUSED(_handle);
  52. }
  53. void setMouseLock(WindowHandle _handle, bool _lock)
  54. {
  55. BX_UNUSED(_handle, _lock);
  56. }
  57. } // namespace entry
  58. int main(int _argc, char** _argv)
  59. {
  60. entry::main(_argc, _argv);
  61. }
  62. #endif // ENTRY_CONFIG_USE_NOOP