mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 04:12:07 +00:00
67 lines
1.5 KiB
C
67 lines
1.5 KiB
C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
* 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/>.
|
|
*/
|
|
|
|
#ifndef __D3DVIDEO_INTF_H__
|
|
#define __D3DVIDEO_INTF_H__
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "../../config.h"
|
|
#endif
|
|
|
|
#ifndef _XBOX
|
|
#define HAVE_WINDOW
|
|
#endif
|
|
|
|
#include "../../driver.h"
|
|
|
|
#include "../font_driver.h"
|
|
#include "../video_driver.h"
|
|
#ifdef _XBOX
|
|
#include "../../defines/xdk_defines.h"
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
bool fullscreen;
|
|
bool enabled;
|
|
unsigned tex_w, tex_h;
|
|
float tex_coords[4];
|
|
float vert_coords[4];
|
|
float alpha_mod;
|
|
void *tex;
|
|
void *vert_buf;
|
|
} overlay_t;
|
|
|
|
typedef struct Vertex
|
|
{
|
|
float x, y, z;
|
|
uint32_t color;
|
|
float u, v;
|
|
} Vertex;
|
|
|
|
typedef struct d3d_video_viewport
|
|
{
|
|
DWORD x;
|
|
DWORD y;
|
|
DWORD width;
|
|
DWORD height;
|
|
float min_z;
|
|
float max_z;
|
|
} d3d_video_viewport_t;
|
|
|
|
#endif
|
|
|