GraphicsEvents.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //
  2. // Copyright (c) 2008-2014 the Urho3D project.
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to deal
  6. // in the Software without restriction, including without limitation the rights
  7. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. // copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. // THE SOFTWARE.
  21. //
  22. #pragma once
  23. #include "Object.h"
  24. namespace Urho3D
  25. {
  26. /// Operating system window message.
  27. EVENT(E_WINDOWMESSAGE, WindowMessage)
  28. {
  29. PARAM(P_WINDOW, Window); // int
  30. PARAM(P_MSG, Msg); // int
  31. PARAM(P_WPARAM, WParam); // int
  32. PARAM(P_LPARAM, LParam); // int
  33. PARAM(P_HANDLED, Handled); // bool
  34. }
  35. /// New screen mode set.
  36. EVENT(E_SCREENMODE, ScreenMode)
  37. {
  38. PARAM(P_WIDTH, Width); // int
  39. PARAM(P_HEIGHT, Height); // int
  40. PARAM(P_FULLSCREEN, Fullscreen); // bool
  41. PARAM(P_RESIZABLE, Resizable); // bool
  42. PARAM(P_BORDERLESS, Borderless); // bool
  43. }
  44. /// Graphics features checked.
  45. EVENT(E_GRAPHICSFEATURES, GraphicsFeatures)
  46. {
  47. }
  48. /// Request for queuing autoupdated rendersurfaces.
  49. EVENT(E_RENDERSURFACEUPDATE, RenderSurfaceUpdate)
  50. {
  51. }
  52. /// Frame rendering started.
  53. EVENT(E_BEGINRENDERING, BeginRendering)
  54. {
  55. }
  56. /// Frame rendering ended.
  57. EVENT(E_ENDRENDERING, EndRendering)
  58. {
  59. }
  60. /// Update of a view started.
  61. EVENT(E_BEGINVIEWUPDATE, BeginViewUpdate)
  62. {
  63. PARAM(P_TEXTURE, Texture); // Texture pointer
  64. PARAM(P_SURFACE, Surface); // RenderSurface pointer
  65. PARAM(P_SCENE, Scene); // Scene pointer
  66. PARAM(P_CAMERA, Camera); // Camera pointer
  67. }
  68. /// Update of a view ended.
  69. EVENT(E_ENDVIEWUPDATE, EndViewUpdate)
  70. {
  71. PARAM(P_TEXTURE, Texture); // Texture pointer
  72. PARAM(P_SURFACE, Surface); // RenderSurface pointer
  73. PARAM(P_SCENE, Scene); // Scene pointer
  74. PARAM(P_CAMERA, Camera); // Camera pointer
  75. }
  76. /// Render of a view started.
  77. EVENT(E_BEGINVIEWRENDER, BeginViewRender)
  78. {
  79. PARAM(P_TEXTURE, Texture); // Texture pointer
  80. PARAM(P_SURFACE, Surface); // RenderSurface pointer
  81. PARAM(P_SCENE, Scene); // Scene pointer
  82. PARAM(P_CAMERA, Camera); // Camera pointer
  83. }
  84. /// Render of a view ended.
  85. EVENT(E_ENDVIEWRENDER, EndViewRender)
  86. {
  87. PARAM(P_TEXTURE, Texture); // Texture pointer
  88. PARAM(P_SURFACE, Surface); // RenderSurface pointer
  89. PARAM(P_SCENE, Scene); // Scene pointer
  90. PARAM(P_CAMERA, Camera); // Camera pointer
  91. }
  92. }