Commit Graph

639 Commits

Author SHA1 Message Date
twinaphex
4f499fc5c3 Buildfixes 2015-12-20 21:09:00 +01:00
twinaphex
6362c86c31 Buildfixes 2015-12-20 21:08:03 +01:00
twinaphex
aa488dda25 Create video driver poke load_texture / unload_texture 2015-12-20 20:52:23 +01:00
Higor Eurípedes
d602b8ed5a (d3d) Fix build 2015-12-08 22:16:55 -03:00
Higor Eurípedes
7135dfb597 (d3d) Fix build 2015-12-08 16:03:25 -03:00
twinaphex
df60523f6c Move current_shader pointer to video_shader_driver.c 2015-12-08 09:27:25 +01:00
twinaphex
6fbdd319f4 Add header include 2015-12-06 19:59:15 +01:00
twinaphex
99ea0095a3 Create RARCH_MENU_CTL_FRAME 2015-12-06 18:28:37 +01:00
twinaphex
736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex
03e2873296 (D3D) Buildfixes 2015-12-05 13:31:02 +01:00
twinaphex
c8d8176c0c Get rid of unused variables 2015-12-05 12:50:56 +01:00
twinaphex
612c05ac71 (Xbox) Buildfix 2015-12-05 12:21:20 +01:00
twinaphex
df1c6344be Merge font_renderer_driver.c and font_driver.c 2015-12-05 12:07:22 +01:00
twinaphex
988162ed62 Cut down on code duplication 2015-12-05 11:29:06 +01:00
twinaphex
5f27366cb3 Expand font_driver_init_first 2015-12-05 11:18:05 +01:00
twinaphex
a26e64e24d Expand font_driver_free 2015-12-05 10:54:53 +01:00
twinaphex
e196fdf141 font_driver_render_msg - make it possible to pass special font data 2015-12-05 10:49:28 +01:00
twinaphex
c88d795734 Start using font driver wrapper functions 2015-12-05 10:33:50 +01:00
twinaphex
89721b8837 Start creating font driver wrapper functions 2015-12-05 10:31:15 +01:00
twinaphex
7b1fb48034 (D3D) Use new video_shader_driver_* functions 2015-12-04 16:46:43 +01:00
twinaphex
1956dffe9b Create video_shader_driver_use 2015-12-04 16:01:09 +01:00
twinaphex
3f6540dd58 Start using video_shader_driver_init for D3D too 2015-12-04 15:53:02 +01:00
twinaphex
c62150c2a2 Move video_data_own to gfx/video_driver.c 2015-11-29 20:23:16 +01:00
twinaphex
ef3cbed13e Create separate WndProc for GL and D3D 2015-11-28 21:50:28 +01:00
twinaphex
c9db73e944 Contain driver->input_data usage pt. 2 2015-11-25 03:25:31 +01:00
twinaphex
a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
twinaphex
ffbaef13b9 driver->threaded_video never used - buildfix for Windows 2015-11-23 22:29:27 +01:00
twinaphex
6f18656baa driver->video_context should be self-contained now to video_context_driver.c 2015-11-23 21:20:21 +01:00
twinaphex
d23d1f6cb0 (D3D) Attempted buildfix 2015-11-23 20:30:56 +01:00
twinaphex
389cf13db5 Don't reference driver->video_data outside of gx/video_driver.c anymore 2015-11-23 18:51:04 +01:00
twinaphex
daedeced2c (render_chain_xdk.cpp) Add verbosity.h header include 2015-11-23 13:15:37 +01:00
twinaphex
6fbd7dce35 render_chain_cg.cpp - add verbosity.h 2015-11-23 13:14:09 +01:00
twinaphex
e970372959 (D3D) Buildfix 2015-11-23 13:02:02 +01:00
twinaphex
86504392b9 Create video_driver_set_size 2015-11-23 12:54:15 +01:00
twinaphex
b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
twinaphex
6470253f0d (Win32) Buildfixes 2015-11-22 22:25:01 +01:00
twinaphex
85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex
892d99b3a6 Add SET_VIEWPORT_CONFIG 2015-11-21 13:13:55 +01:00
twinaphex
806c124eae Merge video_viewport.c and video_driver.c 2015-11-21 13:01:23 +01:00
twinaphex
5b44bd0e6b Create RARCH_DISPLAY_CTL_SET_VIEWPORT_SQUARE_PIXEL 2015-11-21 12:54:38 +01:00
twinaphex
4db97a5300 Refactor away video_viewport_set_core 2015-11-21 12:45:36 +01:00
twinaphex
533b799692 Create video_driver_ctl and get rid of video_driver_get_frame_count 2015-11-20 15:08:27 +01:00
twinaphex
f2f0e7efb2 Move win32_window_init to C code 2015-11-19 08:37:25 +01:00
twinaphex
9207acd6f2 Expand win32_window_init 2015-11-19 08:30:37 +01:00
twinaphex
588b4259f7 Rename d3d_wrapper to d3d_common 2015-11-18 13:00:13 +01:00
twinaphex
66b89474a6 (render_chain_xdk.cpp) No more dependency on global 2015-11-18 03:15:43 +01:00
twinaphex
8bc104e5e8 (D3D/Cg) LUT buildfix 2015-11-18 00:26:50 +01:00
twinaphex
a12c404a95 (D3D/Cg) chain->luts now no longer std::vector 2015-11-18 00:24:36 +01:00
twinaphex
af0959f74b (D3D/Cg) Some build fixes for Debug profile 2015-11-18 00:16:53 +01:00
twinaphex
ca3ea65332 Revert "Create d3d_vertex_declaration_free"
This reverts commit 5c0cb15856.
2015-11-17 23:54:26 +01:00
twinaphex
a5c6629ec2 Revert "(d3d_wrapper.cpp) Xbox 1 buildfix"
This reverts commit f028273dec.
2015-11-17 23:54:25 +01:00
twinaphex
f996563ada Revert "Add size_t argument to d3d_vertex_buffer_lock"
This reverts commit 4f54dbe9d9.
2015-11-17 23:54:24 +01:00
twinaphex
4f54dbe9d9 Add size_t argument to d3d_vertex_buffer_lock 2015-11-17 23:32:32 +01:00
twinaphex
f028273dec (d3d_wrapper.cpp) Xbox 1 buildfix 2015-11-17 23:25:59 +01:00
twinaphex
5c0cb15856 Create d3d_vertex_declaration_free 2015-11-17 23:24:56 +01:00
twinaphex
ca2f36f256 Revert "Create d3d_create_device"
This reverts commit 2a312e153f.
2015-11-17 13:44:24 +01:00
twinaphex
7205917560 Revert "(D3D) Buildfix"
This reverts commit 3c02410841.
2015-11-17 13:44:14 +01:00
twinaphex
3c02410841 (D3D) Buildfix 2005-04-23 20:36:51 +02:00
twinaphex
2a312e153f Create d3d_create_device 2015-11-17 13:36:03 +01:00
twinaphex
ff03f83994 (Xbox 1) Some preliminary build fixes 2005-04-23 20:22:55 +02:00
twinaphex
a10ec1e89b (XBOX) Avoid warning 2015-11-17 11:51:52 +01:00
twinaphex
724680361d (XDK) More buildfixes 2015-11-17 11:51:04 +01:00
twinaphex
193c3229f2 (_XBOX) Buildfixes 2015-11-17 11:47:44 +01:00
twinaphex
55341a994e (360) Define DONT_HAVE_STATE_TRACKER 2015-11-17 11:45:55 +01:00
twinaphex
e9fa55c682 (D3D) Some code is for HAVE_MENU instead of HAVE_OVERLAY 2015-11-17 11:42:59 +01:00
twinaphex
36c9174998 (XDK) Stub luts 2015-11-17 11:39:33 +01:00
twinaphex
e1ed720841 Define stub HWNDCLASSEX 2015-11-17 11:09:32 +01:00
twinaphex
3ff5c91e5c (D3D) Cleanups 2015-11-17 10:49:36 +01:00
twinaphex
bb55105da0 dinput_handle_message prototype can go 2015-11-17 09:48:46 +01:00
twinaphex
4d7daf5dfd g_hwnd no longer used outside 2015-11-17 09:44:26 +01:00
twinaphex
922b679769 Create win32_get_window 2015-11-17 09:41:18 +01:00
twinaphex
f9e4ec72c4 Revert "(win32_common) No longer expose global variables to outside"
This reverts commit 33884de94c.
2015-11-17 09:33:27 +01:00
twinaphex
33884de94c (win32_common) No longer expose global variables to outside 2015-11-17 09:29:43 +01:00
twinaphex
4d28ea35ab Move d3d_defines.h to defines/ 2015-11-17 08:20:10 +01:00
twinaphex
6d977f08a9 Create d3d_reset 2015-11-14 20:02:55 +01:00
twinaphex
3e85aefb80 (D3D) Update 2015-11-12 05:45:46 +01:00
twinaphex
4f37c1a487 d3d_construct - some cleanups 2015-11-12 05:39:55 +01:00
twinaphex
ad85db3965 Start using g_resize_width/g_resize_height for D3D too 2015-11-12 03:08:09 +01:00
twinaphex
9a82d2a956 Create win32_monitor_set_fullscreen 2015-11-12 03:01:50 +01:00
twinaphex
0dce6479c1 Create win32_window_create 2015-11-12 02:51:40 +01:00
twinaphex
cb008b13f8 (D3D) Use the same hwnd variable as WGL 2015-11-12 02:45:16 +01:00
twinaphex
66727bba2e (D3D) More 2015-11-12 02:40:26 +01:00
twinaphex
060a255561 Start fleshing out d3d_construct 2015-11-12 02:35:18 +01:00
twinaphex
f929e9cee7 Revert "Start using wrappers for vertex declarations"
This reverts commit a09e8e0684.
2015-11-12 01:55:18 +01:00
twinaphex
a09e8e0684 Start using wrappers for vertex declarations 2015-11-12 01:48:36 +01:00
twinaphex
a4336fe89a (D3D) Buildfix 2015-11-12 01:44:34 +01:00
twinaphex
f610f29e34 Add d3d_vertex_declaration_new 2015-11-12 01:38:13 +01:00
twinaphex
e50339ee79 Call d3d_set_vertex_declaration 2015-11-12 01:32:01 +01:00
twinaphex
7a76d7e0a7 (D3D) Buildfix 2015-11-12 01:29:25 +01:00
twinaphex
823e2db596 Create d3d_set_render_state 2015-11-12 01:28:14 +01:00
twinaphex
cb5d4b0569 Compile in win32_monitor_ functions for Xbox too but leave them
stub
2015-11-12 01:22:28 +01:00
twinaphex
3d20af9135 (D3D) Cleanups 2015-11-11 19:59:56 +01:00
twinaphex
938dfa775a (D3D/GL) Try to use common code for both 2015-11-11 19:41:32 +01:00
twinaphex
4e8000571f (renderchain/d3d) Use void pointer 2015-11-11 18:20:07 +01:00
twinaphex
75e30002e0 Revert "Take out windowClass from D3D struct"
This reverts commit 6e689ec0f0.
2015-11-11 18:07:36 +01:00
twinaphex
6e689ec0f0 Take out windowClass from D3D struct 2015-11-11 18:03:51 +01:00
twinaphex
00cbf68e95 (D3) Reuse common multi-monitor code 2015-11-11 17:57:15 +01:00
twinaphex
ca8d2b6b38 Change function signature of d3d_monitor_rect 2015-11-11 17:51:27 +01:00
twinaphex
e90b8f1007 Revert "(D3D) Updates"
This reverts commit 3f77a9b745.
2015-11-11 05:42:49 +01:00
twinaphex
37154219f0 Revert "(D3D) Move code up"
This reverts commit d2e778b3f6.
2015-11-11 05:42:41 +01:00
twinaphex
d2e778b3f6 (D3D) Move code up 2015-11-11 05:39:46 +01:00
twinaphex
3f77a9b745 (D3D) Updates 2015-11-11 05:38:41 +01:00
twinaphex
2064164c1d (D3D) Buildfix 2015-11-11 05:35:32 +01:00
twinaphex
8c1da38cb1 (D3D) Cleanups 2015-11-11 05:34:21 +01:00
twinaphex
268b1b61d0 (D3D) Buildfix 2015-11-11 05:32:55 +01:00
twinaphex
0f9f8c248b (Win32) Refactor monitor code 2015-11-11 05:32:00 +01:00
twinaphex
5ea9bfe7e5 Revert "Create make_pp callback function"
This reverts commit 3d77689bf5.
2015-11-11 04:49:20 +01:00
twinaphex
3d77689bf5 Create make_pp callback function 2015-11-11 04:46:16 +01:00
twinaphex
8cc70fb46b Unnecessary casts for vertex_buffer_new 2015-11-11 04:18:10 +01:00
twinaphex
edc72d477b d3d_texture_new - unnecessary casts 2015-11-11 04:16:18 +01:00
twinaphex
e7808e03d0 (D3D) Remove overlay_vertex 2015-11-11 04:12:33 +01:00
twinaphex
a61c529d20 (D3D) Simplify struct overlay_vertex 2015-11-11 04:07:48 +01:00
twinaphex
fd12b4b957 Revert "(D3D)Get rid of overlay_vertex struct"
This reverts commit 646436a5a7.
2015-11-11 04:01:50 +01:00
twinaphex
646436a5a7 (D3D)Get rid of overlay_vertex struct 2015-11-11 03:56:23 +01:00
twinaphex
2fb91683a1 (D3D) Remove Coords struct 2015-11-11 03:48:05 +01:00
twinaphex
7bcd7d1d3d Sigh - another buildfix 2015-11-11 02:45:37 +01:00
twinaphex
321d73cc66 render_chain_null - buildfix 2015-11-11 02:44:54 +01:00
twinaphex
b093cd4df0 Reduce XBOX ifdefs 2015-11-11 02:42:15 +01:00
twinaphex
49f8df1f01 (D3D) Another buildfix 2015-11-11 02:05:20 +01:00
twinaphex
3fb78a4ed4 (D3D) Buildfixes 2015-11-11 02:04:42 +01:00
twinaphex
bc311f3962 (renderchain_cg) Cleanups 2015-11-11 02:01:00 +01:00
twinaphex
91a99d9da5 (render_chain_cg.cpp) Use d3d_set_viewport 2015-11-11 01:54:05 +01:00
twinaphex
376ecb2a47 (D3D) Two more buildfixes 2015-11-11 01:46:59 +01:00
twinaphex
2b50d1c01c (D3D) Buildfixes 2015-11-11 01:45:43 +01:00
twinaphex
71c40f1bc8 Add viewport_info callback to renderchain 2015-11-11 01:43:58 +01:00
twinaphex
ebe0a4aa4a Add more function pointers to renderchain 2015-11-11 01:34:00 +01:00
twinaphex
bcc0614fc4 Use d3d_set_viewport 2015-11-10 23:09:58 +01:00
twinaphex
ffe711642f (D3D) Get rid of some backbuffer glitches 2015-11-10 23:09:13 +01:00
twinaphex
d1626265ce (D3D) Call SetViewport directly 2015-11-10 23:00:36 +01:00
twinaphex
028a390f8e (D3D) Cleanups 2015-11-10 22:46:45 +01:00
twinaphex
442ebcc1b8 Don't use new_width/new_height anymore 2015-11-10 22:36:05 +01:00
twinaphex
07cf7cbd36 Rename d3d_set_viewport_wrap to d3d_set_viewport 2015-11-10 22:30:21 +01:00
twinaphex
1f49ed0438 Move d3d_set_viewport up 2015-11-10 22:23:49 +01:00
twinaphex
600c930495 (D3D) No longer use calculate_rect anywhere 2015-11-10 22:22:31 +01:00
twinaphex
a6ab373140 (D3D) Move d3d_set_viewport_wrap up 2015-11-10 22:18:08 +01:00
twinaphex
fd3084bf18 Revert "Refactor away d3d_calculate_rect"
This reverts commit 19f9833a22.
2015-11-10 22:12:46 +01:00
twinaphex
8ab8423f2f Revert "(D3D) Buildfix"
This reverts commit 1db4e79a17.
2015-11-10 22:12:37 +01:00
twinaphex
1db4e79a17 (D3D) Buildfix 2015-11-10 22:09:07 +01:00
twinaphex
19f9833a22 Refactor away d3d_calculate_rect 2015-11-10 22:07:51 +01:00
twinaphex
21575e5318 Call d3d_calculate_rect from set_viewport_wrap 2015-11-10 22:05:31 +01:00
twinaphex
8d4c721ee4 Move set_final_viewport to d3d_set_viewport_wrap 2015-11-10 22:00:35 +01:00
twinaphex
4cdde1c7c4 Use d3d_set_viewport_wrap 2015-11-10 21:58:33 +01:00
twinaphex
1f1525a7e8 (D3D) Cleanups 2015-11-10 15:30:24 +01:00
twinaphex
749c0b4ef8 Make d3d_calculate_rect more like gl_set_viewport 2015-11-10 05:47:53 +01:00
twinaphex
d9fe978d1c Merge branch 'master' of https://github.com/libretro/RetroArch 2015-11-10 05:32:59 +01:00
twinaphex
29aa5bae27 (D3D) Add keep_aspect 2015-11-10 05:30:25 +01:00
twinaphex
bfe0eb9bfb Call gfx_ctx_set_resize from d3d_frame 2015-11-10 05:26:37 +01:00
twinaphex
5cbfbb190c (D3D) Buildfix 2015-11-10 05:11:49 +01:00
twinaphex
fd319cb223 (D3D) Cleanups 2015-11-10 05:09:31 +01:00
twinaphex
413d783127 Include header 2015-11-10 01:50:15 +01:00
twinaphex
54b2d46855 (D3D) Add video_viewport 2015-11-10 00:30:00 +01:00
twinaphex
c5b5d3c186 (D3D) Cleanups 2015-11-10 00:13:28 +01:00
twinaphex
40aa2a1864 Revert "(D3D) Don't use std::vector for attrib_map"
This reverts commit 02d61bf992.
2015-11-09 22:07:44 +01:00
twinaphex
02d61bf992 (D3D) Don't use std::vector for attrib_map 2015-11-09 22:04:45 +01:00
twinaphex
f277fd5323 Don't do overloading of translate_filter 2015-11-09 19:35:59 +01:00
twinaphex
9f6e273e6a (D3D) Buildfix 2015-11-09 19:08:57 +01:00
twinaphex
4fbebb57df Revert "Move releasing of devices to d3d_deinitialize"
This reverts commit f90bd16825.
2015-11-09 19:01:24 +01:00
twinaphex
f90bd16825 Move releasing of devices to d3d_deinitialize 2015-11-09 18:56:24 +01:00
twinaphex
4f0be8bcb0 (D3D/renderchain_cg) More cleanups 2015-11-09 17:18:21 +01:00
twinaphex
ffed38fbf3 (render_chain_cg.cpp) Stop abusing void pointers 2015-11-09 17:03:25 +01:00
twinaphex
5d155860cb (D3D) Buildfix 2015-11-09 16:04:33 +01:00
twinaphex
b5171c251a Not sure why this was stubbed out 2015-11-09 16:03:40 +01:00
twinaphex
64bc7cbe36 (D3D) Fix function call 2015-11-09 15:43:46 +01:00
twinaphex
b8a5249474 d3d_lock_rectangle - fix function signature 2015-11-09 15:43:03 +01:00
twinaphex
0bb7f30d6a Use d3d wrapper functions more 2015-11-09 15:39:47 +01:00
twinaphex
3a9ee7feae Add more d3d_wrapper functions 2015-11-09 15:34:16 +01:00
twinaphex
6a12e874b8 Handle failure with d3d_swap 2015-11-09 01:59:24 +01:00
twinaphex
cb9960c6e2 Compile video_texture as C++ for Win32 2015-11-09 01:19:09 +01:00
twinaphex
bbeebcc29a (d3d_wrapper.cpp) Buildfixes 2015-11-09 01:06:35 +01:00
twinaphex
d2657fb18a d3d_wrapper.cpp - don't make us require d3d.h 2015-11-09 01:04:32 +01:00
twinaphex
44464624e9 (video_texture.c) Don't use video_driver_get_ptr 2015-11-09 00:46:59 +01:00
twinaphex
ab651ec09b Don't include <string> inside gfx/d3d/d3d.h 2015-11-09 00:43:39 +01:00
Twinaphex
721d566f99 (D3D) Prevent warning ( also, why is all this code suddenly compiled out?) 2015-10-11 11:02:15 +02:00
twinaphex
27671f5dfc (D3D) Update pretro reference 2015-10-07 03:52:35 +02:00
twinaphex
87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex
4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex
d482dba2eb More static code analysis fixes 2015-09-28 16:57:22 +02:00
twinaphex
a79b571d7b Static code analysis fixes 2015-09-28 16:20:26 +02:00
twinaphex
2b840c0384 Refactor perf counters 2015-09-20 10:02:59 +02:00
twinaphex
43da185d5d Replace more usage of strcpy 2015-09-19 03:50:35 +02:00
twinaphex
09c3bd8d9c (d3d.cpp) Use sprintf 2015-09-07 01:46:19 +02:00
twinaphex
3e977034a7 (Win32) More buildfixes 2015-09-05 14:10:16 +02:00
twinaphex
0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
twinaphex
3d36cb02ac No more separate runloop_t 2015-08-03 20:15:46 +02:00
twinaphex
6e63f562ea (D3D) Buildfix 2015-07-11 19:47:20 +02:00
twinaphex
c3f5ea0fcc Make input_overlay.h no longer depend on RPNG image 2015-07-11 08:14:39 +02:00
twinaphex
43c8f282db (Gfx) Cleanups 2015-06-13 02:10:06 +02:00
Toad King
e97ecc17cc fix d3d build 2015-05-20 17:28:12 -05:00
twinaphex
e04dff82b5 Add some notes 2015-05-20 23:04:15 +02:00
twinaphex
6e327a3b8d Get rid of more unused global local pointers 2015-05-20 22:48:33 +02:00
twinaphex
2f62cd65e2 Start using video_viewport_get_custom everywhere 2015-05-20 19:12:39 +02:00
twinaphex
a053b41223 Create video_viewport_get_system_av_info and video_viewport_get_custom -
move custom viewport and system av info outside of global state
2015-05-20 18:57:17 +02:00
twinaphex
b255b5a325 Create video_driver_set_aspect_ratio_value and video_driver_get_aspect_ratio 2015-05-20 18:24:45 +02:00
twinaphex
066617ee62 (MSVC) Buildfixes 2015-05-20 02:45:32 +02:00
twinaphex
4352cca599 Cleanup last remaining references 2015-05-20 02:40:44 +02:00
twinaphex
b2d57fd07d (D3D) Remove dependencies on video_data 2015-05-20 02:30:31 +02:00
twinaphex
9ce32fd7af (D3D) Refactor more global->video_data.* {width/height} references 2015-05-20 01:54:57 +02:00
twinaphex
629ff05499 (XDK) More refactors 2015-05-20 01:51:14 +02:00
twinaphex
3d5abae2b9 Refactor more usage of global->video_data.width/global->video_data.height 2015-05-20 01:44:17 +02:00
twinaphex
b99ae6f4e4 Refactor some more code to no longer use global->video_data.width/
global->video_data.height directly
2015-05-20 01:39:35 +02:00