RetroArch/gfx/common/d3d8_defines.h

78 lines
1.9 KiB
C
Raw Normal View History

/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
2023-06-01 20:14:19 +02:00
#ifndef _D3D8_DEFINES_H
#define _D3D8_DEFINES_H
#include <boolean.h>
#include <retro_common_api.h>
2018-04-22 15:34:08 +02:00
#include <retro_inline.h>
2018-04-22 14:55:15 +02:00
#include <d3d8.h>
#include "../../retroarch.h"
2018-04-22 15:34:08 +02:00
#include "../../verbosity.h"
RETRO_BEGIN_DECLS
2018-05-03 22:03:12 +02:00
typedef struct d3d8_video
{
overlay_t *menu;
void *renderchain_data;
struct video_viewport vp;
struct video_shader shader;
video_info_t video_info;
2018-05-14 03:57:27 +02:00
#ifdef HAVE_WINDOW
2018-05-03 22:03:12 +02:00
WNDCLASSEX windowClass;
2018-05-14 03:57:27 +02:00
#endif
2018-05-03 22:03:12 +02:00
LPDIRECT3DDEVICE8 dev;
2018-05-13 18:24:19 +02:00
D3DVIEWPORT8 final_viewport;
2018-05-03 22:03:12 +02:00
char *shader_path;
struct
{
void *buffer;
void *decl;
2023-06-01 20:29:05 +02:00
int size;
int offset;
2018-05-03 22:03:12 +02:00
}menu_display;
overlay_t *overlays;
2023-06-01 20:29:05 +02:00
size_t overlays_size;
unsigned cur_mon_id;
unsigned dev_rotation;
math_matrix_4x4 mvp; /* float alignment */
math_matrix_4x4 mvp_rotate; /* float alignment */
math_matrix_4x4 mvp_transposed; /* float alignment */
bool keep_aspect;
bool should_resize;
bool quitting;
bool needs_restore;
bool overlays_enabled;
/* TODO - refactor this away properly. */
bool resolution_hd_enable;
/* Only used for Xbox */
bool widescreen_mode;
2018-05-03 22:03:12 +02:00
} d3d8_video_t;
RETRO_END_DECLS
#endif