git subrepo pull --force deps/lightrec
[pcsx_rearmed.git] / deps / libretro-common / include / libretro_gskit_ps2.h
CommitLineData
3719602c
PC
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
27#ifndef LIBRETRO_GSKIT_PS2_H_
28#define LIBRETRO_GSKIT_PS2_H_
29
30#include "libretro.h"
31
32#if defined(PS2)
33
34#include <gsKit.h>
35
36#define RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION 2
37
38struct retro_hw_ps2_insets
39{
40 float top;
41 float left;
42 float bottom;
43 float right;
44};
45
46#define empty_ps2_insets (struct retro_hw_ps2_insets){0.f, 0.f, 0.f, 0.f}
47
48struct retro_hw_render_interface_gskit_ps2
49{
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;
54
55 /* Opaque handle to the GSKit_PS2 backend in the frontend
56 * which must be passed along to all function pointers
57 * in this interface.
58 */
59 GSTEXTURE *coreTexture;
60 struct retro_hw_ps2_insets padding;
61};
62typedef struct retro_hw_render_interface_gskit_ps2 RETRO_HW_RENDER_INTEFACE_GSKIT_PS2;
63
64#endif
65
66#endif /* LIBRETRO_GSKIT_PS2_H_ */