SDL_ngagevideo.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #include "SDL_internal.h"
  19. #ifndef SDL_ngagevideo_h
  20. #define SDL_ngagevideo_h
  21. #include "../SDL_sysvideo.h"
  22. #include <e32std.h>
  23. #include <e32svr.h>
  24. #include <bitdev.h>
  25. #include <w32std.h>
  26. #include "bitdraw.h" // CFbsDrawDevice
  27. #define SDL_VideoDevice *_this SDL_VideoDevice *_this
  28. struct SDL_VideoData
  29. {
  30. // Epoc window server info
  31. RWsSession NGAGE_WsSession;
  32. RWindowGroup NGAGE_WsWindowGroup;
  33. TInt NGAGE_WsWindowGroupID;
  34. RWindow NGAGE_WsWindow;
  35. CWsScreenDevice *NGAGE_WsScreen;
  36. CWindowGc *NGAGE_WindowGc;
  37. TRequestStatus NGAGE_WsEventStatus;
  38. TRequestStatus NGAGE_RedrawEventStatus;
  39. TWsEvent NGAGE_WsEvent;
  40. CFbsDrawDevice *NGAGE_DrawDevice;
  41. TBool NGAGE_IsWindowFocused; // Not used yet
  42. // Screen hardware frame buffer info
  43. TBool NGAGE_HasFrameBuffer;
  44. TInt NGAGE_BytesPerPixel;
  45. TInt NGAGE_BytesPerScanLine;
  46. TInt NGAGE_BytesPerScreen;
  47. TDisplayMode NGAGE_DisplayMode;
  48. TSize NGAGE_ScreenSize;
  49. TUint8 *NGAGE_FrameBuffer;
  50. TPoint NGAGE_ScreenOffset;
  51. CFbsBitGc::TGraphicsOrientation NGAGE_ScreenOrientation;
  52. };
  53. #endif // SDL_ngagevideo_h