1 /* Copyright (C) 2010-2020 The RetroArch team
3 * ---------------------------------------------------------------------------------------------
4 * The following license statement only applies to this libretro API header (libretro_d3d.h)
5 * ---------------------------------------------------------------------------------------------
7 * Permission is hereby granted, free of charge,
8 * to any person obtaining a copy of this software and associated documentation files (the
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
15 * The above copyright notice and this permission notice shall be included in all copies or
16 * substantial portions of the Software.
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
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.
27 #ifndef LIBRETRO_GSKIT_PS2_H_
28 #define LIBRETRO_GSKIT_PS2_H_
36 #define RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION 2
38 struct retro_hw_ps2_insets
46 #define empty_ps2_insets (struct retro_hw_ps2_insets){0.f, 0.f, 0.f, 0.f}
48 struct retro_hw_render_interface_gskit_ps2
50 /* Must be set to RETRO_HW_RENDER_INTERFACE_GSKIT_PS2. */
51 enum retro_hw_render_interface_type interface_type;
52 /* Must be set to RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION. */
53 unsigned interface_version;
55 /* Opaque handle to the GSKit_PS2 backend in the frontend
56 * which must be passed along to all function pointers
59 GSTEXTURE *coreTexture;
60 struct retro_hw_ps2_insets padding;
62 typedef struct retro_hw_render_interface_gskit_ps2 RETRO_HW_RENDER_INTEFACE_GSKIT_PS2;
66 #endif /* LIBRETRO_GSKIT_PS2_H_ */