libretro_gskit_ps2.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Copyright (C) 2010-2020 The RetroArch team
  2. *
  3. * ---------------------------------------------------------------------------------------------
  4. * The following license statement only applies to this libretro API header (libretro_d3d.h)
  5. * ---------------------------------------------------------------------------------------------
  6. *
  7. * Permission is hereby granted, free of charge,
  8. * to any person obtaining a copy of this software and associated documentation files (the
  9. * "Software"),
  10. * to deal in the Software without restriction, including without limitation the rights to
  11. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
  12. * and to permit persons to whom the Software is furnished to do so, subject to the following
  13. * conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included in all copies or
  16. * substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  19. * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  21. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. * LIABILITY,
  23. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. */
  26. #ifndef LIBRETRO_GSKIT_PS2_H_
  27. #define LIBRETRO_GSKIT_PS2_H_
  28. #include "libretro.h"
  29. #if defined(PS2)
  30. #include <gsKit.h>
  31. #define RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION 2
  32. struct retro_hw_ps2_insets
  33. {
  34. float top;
  35. float left;
  36. float bottom;
  37. float right;
  38. };
  39. #define empty_ps2_insets (struct retro_hw_ps2_insets){0.f, 0.f, 0.f, 0.f}
  40. struct retro_hw_render_interface_gskit_ps2
  41. {
  42. /* Must be set to RETRO_HW_RENDER_INTERFACE_GSKIT_PS2. */
  43. enum retro_hw_render_interface_type interface_type;
  44. /* Must be set to RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION. */
  45. unsigned interface_version;
  46. /* Opaque handle to the GSKit_PS2 backend in the frontend
  47. * which must be passed along to all function pointers
  48. * in this interface.
  49. */
  50. GSTEXTURE *coreTexture;
  51. struct retro_hw_ps2_insets padding;
  52. };
  53. typedef struct retro_hw_render_interface_gskit_ps2 RETRO_HW_RENDER_INTEFACE_GSKIT_PS2;
  54. #endif
  55. #endif /* LIBRETRO_GSKIT_PS2_H_ */