Commit Graph

3434 Commits

Author SHA1 Message Date
twinaphex d9f828e047 (D3D) Don't use std::string for title 2015-04-10 07:41:37 +02:00
twinaphex b1258bd179 Wrap more D3D functions and move them to d3d_wrapper.cpp 2015-04-10 07:33:30 +02:00
twinaphex 29f26c634a (D3D) Fix warning 2015-04-10 07:25:45 +02:00
twinaphex ee79299f3a (D3D) Create d3d_alpha_blend_texture_enable_func 2015-04-10 07:24:13 +02:00
twinaphex 93cbdebd37 Create gfx_ctx_get_video_size 2015-04-10 07:12:15 +02:00
twinaphex 901662caad (vg.c) Use gfx_ctx_translate_aspect 2015-04-10 06:52:51 +02:00
twinaphex d16b22fa80 (vg.c) Start going through gfx_ctx wrapper functions 2015-04-10 06:51:00 +02:00
twinaphex 3475dad124 Go through gfx_ctx_show_mouse 2015-04-10 06:46:25 +02:00
twinaphex 5fff3d0879 (D3D) Start using gfx_ctx wrapper functions 2015-04-10 06:41:28 +02:00
twinaphex 89bdccad4d (wgl_ctx.c) Fix warnings 2015-04-10 06:33:18 +02:00
twinaphex 6ff8d368e6 (gl.c) Cleanup 2015-04-10 06:29:27 +02:00
twinaphex a4f234e26e (GL) Cleanup gl_read_viewport 2015-04-10 06:25:25 +02:00
twinaphex 270f10ae04 (gl.c) Cleanup gl_init 2015-04-10 06:17:04 +02:00
twinaphex 37a5a7e653 Create gfx_ctx_suppress_screensaver 2015-04-10 06:13:20 +02:00
twinaphex 7671f3e035 Create gfx_ctx_check_window 2015-04-10 06:10:05 +02:00
twinaphex 33e70124a1 (d3d_ctx.cpp) Cleanup 2015-04-10 06:01:52 +02:00
twinaphex 3213baf452 Take out HAVE_EGL ifdefs in gfx_context_driver_t definition 2015-04-10 05:58:08 +02:00
twinaphex 133d7b7dd2 Wrap more gfx_ctx functions 2015-04-10 05:47:36 +02:00
twinaphex c0d58ce467 Take out win32_dwm_common.h header includes 2015-04-09 23:00:08 +02:00
twinaphex 18801c8449 Move gfx_set_dwm call to platform_win32.c 2015-04-09 22:58:57 +02:00
twinaphex f91f543f74 (D3D) Start using some of the gfx_ctx wrapper functions 2015-04-09 22:47:18 +02:00
twinaphex 0df3f13fc9 Revert "Create wrapper gfx_ctx_check_window"
This reverts commit 4d3b187231.
2015-04-09 22:38:11 +02:00
twinaphex 4d3b187231 Create wrapper gfx_ctx_check_window 2015-04-09 22:37:14 +02:00
twinaphex 82124d6181 Create some more gfx_ctx wrapper functions 2015-04-09 21:58:58 +02:00
twinaphex 4e24111f42 (Graphics context) Create gfx_ctx_translate_aspect 2015-04-09 21:48:20 +02:00
twinaphex a002ce6e6d Create gfx_ctx_get_metrics 2015-04-09 18:55:22 +02:00
twinaphex 8616a9bf28 (VG) Go through gfx_ctx_get_ptr 2015-04-09 18:46:24 +02:00
twinaphex 5b96c82607 (D3D) Start using gfx_ctx_get_ptr 2015-04-09 18:38:24 +02:00
twinaphex 5d60938560 (GL) Go through gfx_ctx_get_ptr 2015-04-09 18:30:30 +02:00
Twinaphex 73bfdfccdb (GL) remove unused variables 2015-04-09 18:20:56 +02:00
twinaphex 849d86db0f (GL) Start going through gfx_ctx_get_ptr 2015-04-09 18:17:52 +02:00
twinaphex 45e87c06e2 (Driver) Create video_context 2015-04-09 18:07:58 +02:00
twinaphex 65310b7699 (Win32) Cleanups/Buildfixes 2015-04-09 05:48:01 +02:00
twinaphex 644d52b6ab (VC Context driver) Style nits/cleanups 2015-04-09 05:35:01 +02:00
twinaphex ff398fe6c8 gfx_ctx_drm_egl_bind_api - return false at the end 2015-04-09 05:29:24 +02:00
twinaphex dc10606b23 Create win32_get_metrics 2015-04-09 05:19:29 +02:00
twinaphex 1f23338ca4 Move win32_common.c to gfx/common 2015-04-09 05:16:02 +02:00
twinaphex 61ca56ae8e Create x11_get_metrics 2015-04-09 05:05:29 +02:00
twinaphex 5e8a78bb25 Move x11_common.c to gfx/common 2015-04-09 05:02:57 +02:00
twinaphex 16b7b454a9 Move gl_common.c to gfx/drivers 2015-04-09 04:57:17 +02:00
twinaphex 8b2c8bae19 (Xvideo) Style nits 2015-04-09 04:15:37 +02:00
twinaphex 2aebce1174 (XEGL/GLX) Implement get_metrics 2015-04-09 03:59:16 +02:00
twinaphex 741e18efb5 (Android) Add android_gfx_ctx_get_metrics 2015-04-09 03:27:41 +02:00
twinaphex 5e4647994b (Windows) Implement get_metrics for D3D and WGL context drivers 2015-04-08 22:06:33 +02:00
twinaphex fab39da46a (Gfx context) Implement get_metrics callback 2015-04-08 20:10:30 +02:00
Twinaphex 66dbd108df Merge pull request #1609 from aliaspider/master
(3DS) video driver update.
2015-04-08 20:05:40 +02:00
aliaspider a7c63f973b (3DS) update video driver:
use a gemotry shader to simulate sprite primitives.
move gpu state commands to the initial display list.
2015-04-08 18:59:41 +01:00
twinaphex 03af36ba64 (WGL) Go through dylib_load 2015-04-08 19:52:15 +02:00
Twinaphex 7781334c98 (OSX) Start implementing apple_gfx_ctx_get_metrics - not yet iOS-compatible 2015-04-08 09:02:47 +02:00
twinaphex c071731ce8 (D3D) Change some cpp files to C 2015-04-07 22:28:05 +02:00
twinaphex b28cd13932 (renderchain cg) ifdef out some unused functions right now 2015-04-07 07:04:54 +02:00
Twinaphex d7b62bf96a Merge pull request #1597 from fr500/master
fixes D3D for MSYS2/MINGW builds
2015-04-07 06:09:43 +02:00
radius a9da3df191 MSYS2 d3d build fixes 2015-04-06 23:06:32 -05:00
radius d99c571c35 MSYS2 d3d build fixes 2015-04-06 23:05:34 -05:00
twinaphex 1f8d6a7612 (XDK) Updates 2015-04-07 04:18:12 +02:00
twinaphex d55ab52a53 (XDK360) Buildfix 2015-04-07 04:06:33 +02:00
twinaphex 7aceb41658 (XDK) Move Xbox variables over to xdk_renderchain_t 2015-04-07 04:03:06 +02:00
twinaphex ba1c1352ee Revert "(D3D) Updates"
This reverts commit 349d824946.
2015-04-07 03:46:27 +02:00
twinaphex 349d824946 (D3D) Updates 2015-04-07 03:44:09 +02:00
twinaphex db6dc55480 (D3D) improve on earlier commit 2015-04-07 03:32:10 +02:00
twinaphex 62ff81b6b4 (XDK1) Buildfix 2015-04-07 03:28:54 +02:00
twinaphex 2eee9f0c18 (360) Build fix for d3d_vertex_buffer_new 2015-04-07 03:25:47 +02:00
twinaphex 472e508f5a (D3D) Update other init_shader function implementations 2015-04-07 03:22:24 +02:00
twinaphex a029c678d8 (D3D Cg) move cgCtx to renderchain data struct 2015-04-07 03:20:57 +02:00
twinaphex 66ecd60da1 (D3D) renderchain_set_mvp - cleanup 2015-04-07 03:08:25 +02:00
twinaphex 20005f194a (D3D) Buildfix 2015-04-07 02:54:33 +02:00
twinaphex 7df57edf77 (D3D) Move default usage value to d3d_wrapper.cpp function 2015-04-07 02:53:27 +02:00
twinaphex d32af58250 Create d3d_set_vertex_declaration 2015-04-07 02:44:12 +02:00
twinaphex 875adec249 (render_chain_null.c) Remove unused function 2015-04-07 02:38:22 +02:00
twinaphex 38ec5a851f (render_chain_driver.h) Add d3d_defines.h to render_chain_driver.h 2015-04-07 02:37:05 +02:00
twinaphex a02c600a42 (XDK360) Buildfix 2015-04-07 02:25:31 +02:00
twinaphex 9e6c2de94f (XDK) Updates 2015-04-07 01:09:09 +02:00
twinaphex becf52bcf4 (XDK) Update init function 2015-04-07 01:03:03 +02:00
twinaphex 78150259dc (D3D) Simplify d3d_texture_blit 2015-04-07 00:46:46 +02:00
twinaphex 50348efc6a Simplify d3d_lockrectangle_clear 2015-04-07 00:45:15 +02:00
twinaphex c8767090fe (D3D XDK) Move variables to xdk_renderchain 2015-04-07 00:34:07 +02:00
twinaphex b41861a7a4 (XDK) Update 2015-04-07 00:27:47 +02:00
twinaphex c319ebe531 (XDK) Take out more ifndef _XBOX ifdefs 2015-04-07 00:24:11 +02:00
twinaphex 2d330596b1 (D3D) Update d3d_texture_blit 2015-04-07 00:13:01 +02:00
twinaphex 200a301eaa (D3D) Update d3d_lockrectangle_clear 2015-04-07 00:07:17 +02:00
twinaphex 20c9c6e240 (XDK) Update pt. 3 2015-04-06 23:56:12 +02:00
twinaphex 4990cc5a54 (XDK) Update pt. 2 2015-04-06 23:53:02 +02:00
twinaphex 6eb06007b0 (XDK) Update 2015-04-06 23:51:39 +02:00
twinaphex 8a5ad0819f (D3D) Cleanups 2015-04-06 23:45:53 +02:00
twinaphex 7e13d24a26 (D3D) Buildfix 2015-04-06 23:38:02 +02:00
twinaphex dbbf3c5b20 (D3D) Add reinit function pointer 2015-04-06 23:27:55 +02:00
twinaphex 62ae5f1d6f (D3D) Add renderchain_reinit 2015-04-06 23:26:37 +02:00
twinaphex a1217a9e08 (D3D) Fix cg_d3d9_renderchain_free 2015-04-06 21:57:19 +02:00
twinaphex 5c2829d479 (XDK) Small cleanup 2015-04-06 21:38:36 +02:00
twinaphex a31589d70f (XDK) Buildfix 2015-04-06 21:35:33 +02:00
twinaphex bdc97fd5c3 (D3D) Combine deinit functions into one 2015-04-06 21:32:49 +02:00
twinaphex 9b5ba3af36 (D3D) Cleanups 2015-04-06 21:24:12 +02:00
twinaphex b950e4a86a (XDK) Cleanups 2015-04-06 20:51:24 +02:00
twinaphex 160c581df6 (XDK1) Cleanups 2015-04-06 20:47:29 +02:00
twinaphex 640163044e (D3D) Remove unused null_renderchain_blit_to_texture 2015-04-06 18:21:32 +02:00
twinaphex bad8859169 (render_chain_driver.h) Remove dependency on video_info_t 2015-04-06 18:20:08 +02:00
twinaphex e210c2f9ee (XDK) Renderchain buildfix 2015-04-06 18:17:07 +02:00
twinaphex 3b40a8d1ec (D3D) Take out d3d.h dependency from render_chain_driver.h 2015-04-06 18:15:33 +02:00
twinaphex e9c6a0d990 (renderchain xdk) return true for add_lut 2015-04-06 18:06:03 +02:00
twinaphex c027d1a367 (D3D) Buildfix 2015-04-06 18:04:41 +02:00
twinaphex a9a4006ad8 Make all functions static for renderchain drivers 2015-04-06 18:02:42 +02:00
twinaphex 7609c567c9 (Renderchain) Take out public function prototypes 2015-04-06 17:53:24 +02:00
twinaphex 939b0847ed (D3D) Go through more renderchain_driver functions 2015-04-06 17:47:29 +02:00
twinaphex 55d697fbdf (D3D) Go through more renderchain_driver callbacks 2015-04-06 17:18:28 +02:00
twinaphex d2b6f9d735 (D3D) Go through renderchain_driver 2015-04-06 17:16:22 +02:00
twinaphex a7c95b9901 (D3D) Start going through renderchain_driver 2015-04-06 17:12:37 +02:00
twinaphex 4d28d6cd53 (D3D) Use renderchain_init_first 2015-04-06 17:07:39 +02:00
twinaphex 5510dc2978 (D3D) Add render_chain_driver.cpp to Griffin 2015-04-06 16:55:05 +02:00
twinaphex d941ae9863 (D3D) Create null renderchain driver 2015-04-06 16:52:39 +02:00
twinaphex 12d6dd16c4 Add render_chain_driver.cpp 2015-04-06 16:46:58 +02:00
twinaphex 8f74324467 (XDK) Buildfix 2015-04-06 16:24:18 +02:00
twinaphex 2a6456299e (D3D) Renderchain updates 2015-04-06 16:15:29 +02:00
twinaphex ef1d0987fe (XDK) Provide stub functions 2015-04-06 16:08:23 +02:00
twinaphex 646f86fb73 (D3D) Build fixes 2015-04-06 15:59:53 +02:00
twinaphex a529e8bc44 Create renderchain_driver_t 2015-04-06 15:52:41 +02:00
twinaphex ee94ba9a84 (D3D) Cleanup 2015-04-06 06:46:35 +02:00
twinaphex c8cc92859e (XDK) renderchain_init_shader - should return true 2015-04-06 02:08:38 +02:00
twinaphex ccd556d99c (XDK1) Buildfix 2015-04-06 01:51:58 +02:00
twinaphex f205c998d4 (D3D) Cleanups pt. 2 2015-04-06 01:43:47 +02:00
twinaphex 8e91a2fabf (D3D) Refactor d3d_init_chain 2015-04-06 01:36:27 +02:00
twinaphex 8bdfc3d8cb Revert "(D3D) Cleanups"
This reverts commit f93ca7b7e6.
2015-04-06 01:34:31 +02:00
twinaphex f93ca7b7e6 (D3D) Cleanups 2015-04-06 01:34:05 +02:00
twinaphex c955664e45 Revert "(D3D) Cleanups"
This reverts commit 6bf2c34da7.
2015-04-06 01:31:54 +02:00
twinaphex 6bf2c34da7 (D3D) Cleanups 2015-04-06 01:25:53 +02:00
twinaphex ae929ca75a (D3D) Get rid of _XBOX ifdef 2015-04-06 01:14:52 +02:00
twinaphex 37c5c0d98a (D3D) Don't use new/delete 2015-04-06 01:12:42 +02:00
twinaphex 77b3705b89 (D3D) Cleanups 2015-04-06 01:10:39 +02:00
twinaphex 86a35ea9a9 (D3D) Rename render_chain.h to render_chain_driver.h 2015-04-06 01:07:13 +02:00
twinaphex 44894e608b (D3D) Create d3d_enable_blend_func/d3d_disable_blend_func 2015-04-06 00:55:25 +02:00
twinaphex df164dd328 (D3D) Cleanups 2015-04-06 00:44:15 +02:00
twinaphex 38222a677a (D3D) Buildfix 2015-04-06 00:32:07 +02:00
twinaphex e33ca262c3 (D3D) Rename files 2015-04-06 00:30:06 +02:00
twinaphex a49bc54eb1 (XDK) Change signature of renderchain_render 2015-04-06 00:11:04 +02:00
twinaphex ca39d5f707 (D3D) Move renderchain_unbind_all up 2015-04-06 00:08:15 +02:00
twinaphex b48d6306df (D3D) Make renderchain_render_pass static 2015-04-06 00:07:25 +02:00
twinaphex 32c3986ff9 (XDK) Cleanups 2015-04-06 00:03:03 +02:00
twinaphex 70ec7c3811 (D3D) Cleanups 2015-04-06 00:01:32 +02:00
twinaphex 49788350e6 (XDK) Cleanups 2015-04-05 23:54:28 +02:00
twinaphex d264b79418 (XDK) Cleanups 2015-04-05 23:47:02 +02:00
twinaphex cbd5f356c8 (D3D) Cleanups 2015-04-05 23:42:40 +02:00
twinaphex 91f9b5713f (D3D) Make renderchain_blit_to_texture static 2015-04-05 23:30:38 +02:00
twinaphex d4673d6c4c (D3D) Cleanups 2015-04-05 23:28:42 +02:00
twinaphex 508ab03ea2 Make renderchain_compile_shaders static 2015-04-05 23:25:27 +02:00
twinaphex 05b6b7a2ea (D3D) Cleanups 2015-04-05 23:19:10 +02:00
twinaphex f24680fd57 (D3D) Take out some HAVE_CG ifdefs 2015-04-05 23:01:26 +02:00
twinaphex 512f6aa1b8 (3DS) use retro_inline.h 2015-04-05 22:50:44 +02:00
Twinaphex 563bdafada Merge pull request #1589 from aliaspider/master
(3DS) video driver update.
2015-04-05 22:49:19 +02:00
aliaspider e06a7d5f7e (3DS) set the content frame to fullscreen for now, until aspect ratio
settings are implemented.
2015-04-05 21:06:24 +01:00
aliaspider bac17ec84a (3DS) add missing inline directive. 2015-04-05 20:48:23 +01:00
aliaspider 6e364e5e48 (3DS) update copyright. 2015-04-05 20:44:50 +01:00
Twinaphex 7f58dedb46 Merge pull request #1588 from aliaspider/master
(3DS) video driver rewrite.
2015-04-05 21:44:23 +02:00
aliaspider 81933fc96d (3DS) ctr_gu.h was missing. 2015-04-05 20:43:15 +01:00
aliaspider fe923dff98 (3DS) video driver rewrite. 2015-04-05 20:40:35 +01:00
twinaphex c4126d4d11 (XDK) Turn some functions non-static 2015-04-05 19:23:33 +02:00
twinaphex 36a062bcf3 Update signature for d3d_lockrectangle_clear 2015-04-05 19:17:24 +02:00
twinaphex d3ecc62291 (d3d.h) Cleanups 2015-04-05 19:15:03 +02:00
twinaphex 388206ed6b (XBOX) Move XBOX1 SetFlickerFilter to renderchain_blit_texture 2015-04-05 18:59:13 +02:00
twinaphex d14751a649 (D3D) Turn renderchain_set_mvp static 2015-04-05 18:54:14 +02:00
twinaphex 2066396913 (D3D) Make renderchain_set_vertices static 2015-04-05 18:52:44 +02:00
twinaphex 6365ac2174 (D3D) Turn more functions static 2015-04-05 18:49:29 +02:00
twinaphex 1f3c5fc71c (D3D) Turn some functions static 2015-04-05 18:46:28 +02:00
twinaphex d9aa01da06 (D3D) Move structs around 2015-04-05 18:44:12 +02:00
twinaphex b509e12405 (Cg) Move Cg header include to render_chain.cpp 2015-04-05 18:41:40 +02:00
twinaphex e34c90179f (D3D) Move struct Pass to render_chain.cpp 2015-04-05 18:40:19 +02:00
twinaphex daf3f3bb08 (D3D) Buildfix 2015-04-05 18:33:42 +02:00
twinaphex afe35e774a (D3D) renderchain_set_final_viewport - call d3d_recompute_pass_sizes 2015-04-05 18:31:07 +02:00
twinaphex 7d162b79c0 (d3d_wrapper.cpp ) Cleanup 2015-04-05 18:29:38 +02:00
twinaphex e9f08dfafe (D3D) Don't use Pass from d3d_wrapper.cpp 2015-04-05 18:25:48 +02:00
twinaphex 9c678a3abd (D3D) Buildfix #2 2015-04-05 18:21:25 +02:00
twinaphex 6927d6e47c (D3D) Rename cg_shader to shader_path 2015-04-05 18:20:45 +02:00
twinaphex 56145d279d (D3D) Don't ifdef out d3d_init_shader/d3d_deinit_shader 2015-04-05 18:18:02 +02:00
twinaphex 97acc50b6e (D3D) Fix two extern declarations 2015-04-05 18:15:10 +02:00
twinaphex b148bb0c8a (XDK) Buildfix #2 2015-04-05 18:11:50 +02:00
twinaphex e59d5a26b2 (XDK) Buildfix 2015-04-05 18:08:33 +02:00
twinaphex e022372db5 (D3D) Buildfix 2015-04-05 18:01:33 +02:00
twinaphex 1a7d3e3ea0 Move Cg Context to render_chain.cpp 2015-04-05 17:59:03 +02:00
twinaphex 2ae20608e8 Wrap SetTexture calls 2015-04-05 17:44:27 +02:00
twinaphex 252c9e5947 (D3D) d3d_set_texture - implement it properly 2015-04-05 17:42:53 +02:00
twinaphex 7a2554c750 (D3D) Wrap SetSamplerState calls 2015-04-05 17:41:04 +02:00
twinaphex 07dc651d15 (D3D) Go through d3d_set_stream_source in render_chain.cpp 2015-04-05 17:33:54 +02:00
twinaphex 500ad905a8 (D3D) Cleanups 2015-04-05 17:27:45 +02:00
twinaphex 7f65bf700a Revert "(D3D) More refactors to do with hiding away vertex declaration"
This reverts commit c6458daa0e.
2015-04-05 17:21:52 +02:00
twinaphex c6458daa0e (D3D) More refactors to do with hiding away vertex declaration
code in render_chain.cpp
2015-04-05 17:17:18 +02:00
twinaphex aaee638f6d (D3D) Cleanup 2015-04-05 17:08:22 +02:00
twinaphex 74a1920fda (D3D) Free vertex declaration in d3d_vertex_buffer_free 2015-04-05 17:05:53 +02:00
twinaphex d1af8742f6 (D3D) Turn _XBOX1 ifdef into HAVE_D3D8 2015-04-05 16:54:06 +02:00
twinaphex 2adab38d8e (D3D) Use libretro.h pixel format types 2015-04-05 16:51:19 +02:00
twinaphex e89a712d8d (D3D) Use libretro pixel format types 2015-04-05 16:48:22 +02:00
twinaphex 162ffd9586 (D3D) Cleanups 2015-04-05 16:34:31 +02:00
twinaphex 3f118245a6 Change some _XBOX1 defines to HAVE_D3D8 defines 2015-04-05 16:17:22 +02:00
twinaphex bd9b6f4795 (D3D) Style nits 2015-04-05 16:15:14 +02:00
twinaphex 975464968f (D3D) Style nits 2015-04-05 15:53:06 +02:00
twinaphex e3e99d0516 Include render_chain_cg.h into render_chain.cpp 2015-04-05 05:09:05 +02:00
twinaphex a1106e949e (XDK) Don't increment video frame count in video driver 2015-04-05 05:06:01 +02:00
twinaphex f0dbe674a4 Move struct definition of renderchain_t to render_chain.cpp 2015-04-05 05:01:47 +02:00
twinaphex 8b9d08e8ee (D3D) Refactors pt. 2 2015-04-05 04:59:35 +02:00
twinaphex bf196212f3 (D3D) Refactor renderchain code some more 2015-04-05 04:54:50 +02:00
twinaphex 4ba073424c (D3D) More refactors 2015-04-05 04:30:50 +02:00
twinaphex 122df894ff (D3D) Cleanups 2015-04-05 04:18:49 +02:00
twinaphex 58112a1409 (D3D) Refactor find_semantic 2015-04-05 04:04:19 +02:00