RetroArch
gdi_common.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * copyright (c) 2011-2017 - Daniel De Matteis
4  * copyright (c) 2016-2017 - Brad Parker
5  *
6  * RetroArch is free software: you can redistribute it and/or modify it under the terms
7  * of the GNU General Public License as published by the Free Software Found-
8  * ation, either version 3 of the License, or (at your option) any later version.
9  *
10  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE. See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along with RetroArch.
15  * If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __GDI_COMMON_H
19 #define __GDI_COMMON_H
20 
21 #include <retro_environment.h>
22 
23 typedef struct gdi
24 {
25 #ifndef __WINRT__
26  WNDCLASSEX wndclass;
27 #endif
28  HDC winDC;
29  HDC memDC;
30  HDC texDC;
31  HBITMAP bmp;
32  HBITMAP bmp_old;
33  unsigned video_width;
34  unsigned video_height;
35  unsigned screen_width;
36  unsigned screen_height;
37  void *ctx_data;
39 } gdi_t;
40 
41 typedef struct gdi_texture
42 {
43  int width;
44  int height;
47 
49  void* data;
50  HBITMAP bmp;
51  HBITMAP bmp_old;
53 
54 #endif
struct gdi_texture gdi_texture_t
unsigned video_width
Definition: gdi_common.h:33
void * data
Definition: gdi_common.h:49
Definition: gdi_common.h:41
unsigned video_height
Definition: gdi_common.h:34
const gfx_ctx_driver_t * ctx_driver
Definition: gdi_common.h:38
unsigned screen_height
Definition: gdi_common.h:36
Definition: gdi_common.h:23
WNDCLASSEX wndclass
Definition: gdi_common.h:26
unsigned screen_width
Definition: gdi_common.h:35
HBITMAP bmp
Definition: gdi_common.h:31
Definition: video_driver.h:513
texture_filter_type
Definition: video_defines.h:24
HBITMAP bmp_old
Definition: gdi_common.h:51
int active_height
Definition: gdi_common.h:46
void * ctx_data
Definition: gdi_common.h:37
int height
Definition: gdi_common.h:44
HBITMAP bmp_old
Definition: gdi_common.h:32
HDC winDC
Definition: gdi_common.h:28
HBITMAP bmp
Definition: gdi_common.h:50
int active_width
Definition: gdi_common.h:45
int width
Definition: gdi_common.h:43
enum texture_filter_type type
Definition: gdi_common.h:48
struct gdi gdi_t
HDC memDC
Definition: gdi_common.h:29
HDC texDC
Definition: gdi_common.h:30