Commit Graph

297 Commits

Author SHA1 Message Date
Brad Parker 05c37bd39f initial GDI driver skeleton 2017-01-16 20:41:04 -05:00
twinaphex 326e1e3fac Cleanup video_driver_frame 2017-01-14 13:55:49 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex 8c9e0405fb Create video_driver_build_info 2017-01-13 16:09:32 +01:00
Matthew Wolff f6284721d8 Fix forgotten parameter of video_monitor_get_fps 2017-01-12 23:40:58 -06:00
twinaphex 7d0056d422 Minimize dependence on settings struct from within context drivers 2017-01-11 06:44:41 +01:00
twinaphex 0b03e95d95 We no longer need the settings struct inside gl_init 2017-01-10 18:08:05 +01:00
twinaphex c086a18ceb video_driver_frame_filter no longer needs to grab pointer to
settings
2017-01-09 15:46:40 +01:00
twinaphex 36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +01:00
twinaphex 35fefb1c09 Do away with yet more pointer grabbing of settings 2017-01-09 15:14:16 +01:00
twinaphex 6b3cc9068d Pass video_info to swap_buffers too 2017-01-09 14:59:15 +01:00
twinaphex be2f921ee2 Don't use settings pointer inside video_frame function 2017-01-09 14:25:59 +01:00
Logan McNaughton 017d9cea9d This fixes the XMB menu for me
When using threaded video and shared context

Threaded video gets disabled for GL contexts, so you can't rely on the settings value
2017-01-05 12:53:55 -08:00
twinaphex c028f56016 Turn video_driver_is_threaded into a static function 2017-01-05 08:52:30 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex a12d0d082d Move input_translate_coord_viewport to video_driver.c 2016-12-07 08:07:11 +01:00
Brad Parker ba54f20626 initial libcaca video driver 2016-12-01 12:13:45 -05:00
twinaphex 6c3a5fe634 Buildfix 2016-11-21 13:23:36 +01:00
twinaphex 05d6735720 Simplify video_driver.c code - turn some functions into macros 2016-11-21 13:17:28 +01:00
twinaphex 7e5d2321c5 Create video_driver_reinit 2016-11-06 14:18:29 +01:00
twinaphex 777f2df35c Remove video_driver_unset_active 2016-11-06 13:38:31 +01:00
twinaphex ea46c4a532 Turn video_driver_lock functions static 2016-11-04 14:16:55 +01:00
twinaphex 01bbca9c95 Cleanup 2016-10-28 08:23:54 +02:00
aliaspider a4d745a471 preliminary port to the wiiu platform 2016-10-27 01:34:10 +01:00
twinaphex 9ddad48744 Create gfx/video_defines.h 2016-10-25 20:18:31 +02:00
twinaphex 456c4c4d58 Remove video_driver_cached_frame_render wrapper function 2016-10-25 00:42:26 +02:00
twinaphex 778e742470 Make video_driver_is_threaded a public function 2016-10-18 04:05:51 +02:00
twinaphex d4be224ea6 Header include cleanups 2016-09-12 18:34:57 +02:00
twinaphex 93d98069b2 Cleanups 2016-09-12 16:45:26 +02:00
Alcaro 3f105fe71f Perform evil experiments (run this driver in a completely different program) 2016-09-07 14:30:27 +02:00
twinaphex cc6fe3159f Some comments 2016-09-07 14:12:40 +02:00
twinaphex ab325e54a1 gfx/video_driver.h - add comments 2016-09-07 13:55:46 +02:00
twinaphex e880a3b248 vfilter is for Wii/Gekko only 2016-09-07 13:54:01 +02:00
twinaphex 226460530c Header include cleanup 2016-09-06 23:34:27 +02:00
Alcaro d1b7cdef57 Kill some signed integer overflow warnings 2016-08-31 23:57:06 +02:00
twinaphex d53cbfbdfb Backport DRM video driver 2016-07-03 10:37:07 +02:00
Hans-Kristian Arntzen 10a6d7a458 Vulkan: Begin hooking up negotiation interface. 2016-06-25 21:01:36 +02:00
twinaphex 8fc8ff4ed9 Use retro_common_api.h 2016-06-03 05:43:49 +02:00
twinaphex 4a7ab8366b Move libretro.h headers to libretro-common/include 2016-05-10 19:03:53 +02:00
Hans-Kristian Arntzen d723411436 De ioctl video_driver. 2016-05-08 14:00:51 +02:00
twinaphex 60681195f8 Fix some concurrency bugs 2016-03-24 03:06:03 +01:00
twinaphex e1c47a68fe Take prototype declaration out of video_driver.h 2016-03-23 06:57:29 +01:00
twinaphex 2e080967b0 Reimplement grab mouse code a bit - we really need to drastically
rewrite this
2016-03-14 14:37:18 +01:00
twinaphex 64a77af881 Use RARCH_DISPLAY_CTL_HW_CONTEXT_GET directly instead of
going through video_driver_callback
2016-03-04 20:49:55 +01:00
twinaphex 90fbc6330c Create RARCH_DISPLAY_CTL_SET_TITLE_BUF 2016-03-04 19:38:15 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex 76f7114b47 Remove duplicate prototype 2016-02-14 05:44:10 +01:00
twinaphex f1a572822b Create RARCH_DISPLAY_CTL_VIEWPORT_INFO 2016-02-14 05:42:27 +01:00
twinaphex d078682a3c Add RARCH_DISPLAY_CTL_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2016-02-14 05:31:33 +01:00
twinaphex f8051d846f Turn function static 2016-02-08 00:36:32 +01:00
twinaphex b578ffb056 Create RARCH_DISPLAY_CTL_HW_CONTEXT_GET 2016-02-07 21:53:38 +01:00
twinaphex 0584b3c072 Create RARCH_DISPLAY_CTL_IS_HW_CONTEXT 2016-02-07 20:32:53 +01:00
twinaphex d8bfa7ab7d Rename RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT to RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT 2016-02-07 20:15:58 +01:00
twinaphex 702d9d4728 Create RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT 2016-02-07 20:11:16 +01:00
twinaphex 3e69eb5a8e video_driver_unset_callback - have destroy_callback do this
implicitly
2016-02-07 20:06:07 +01:00
twinaphex ca2c38cd9f Respect 80-char width limit 2016-02-06 21:41:26 +01:00
twinaphex 54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex 4fd5f1cad6 Improvements to unsetting the video driver callback 2015-12-28 21:34:57 +01:00
twinaphex dde68de466 Add new environment callback - RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2015-12-25 19:29:14 +01:00
twinaphex f53711f791 Change return type of load_texture to uintptr_t 2015-12-20 22:38:18 +01:00
twinaphex aa488dda25 Create video driver poke load_texture / unload_texture 2015-12-20 20:52:23 +01:00
twinaphex 7bdc1da676 Create RARCH_DISPLAY_CTL_CACHED_FRAME_SET_PTR 2015-12-09 10:13:48 +01:00
twinaphex ebb0906f3e Remove function 2015-12-09 09:10:21 +01:00
twinaphex 9736713279 Create RARCH_DISPLAY_CTL_SET_STUB_FRAME/UNSET_STUB_FRAME 2015-12-07 21:16:15 +01:00
twinaphex bbbf6513fd move gpu record buffer to video_driver.c 2015-12-06 15:22:20 +01:00
twinaphex ec1b1c3e54 Header cleanups 2015-12-05 21:23:34 +01:00
twinaphex 05b1097d37 Rearrange some headers 2015-12-05 18:45:15 +01:00
twinaphex 89721b8837 Start creating font driver wrapper functions 2015-12-05 10:31:15 +01:00
twinaphex 1fcf63735f Header include changes 2015-12-05 07:45:36 +01:00
twinaphex 351077dc78 Start reimplementing audio/video/input driver deiniting 2015-12-04 14:30:59 +01:00
twinaphex b6be555809 Try to prevent a NULL pointer dereference for global - rename video_frame 2015-12-04 00:26:09 +01:00
twinaphex d1486464fe Turn video_driver_frame_filter into a static function 2015-11-30 07:22:08 +01:00
twinaphex b62738465c Move video_active to gfx/video_driver.c 2015-11-29 21:38:47 +01:00
twinaphex 1d44619f41 Move driver->video_cache_context and driver->video_cache_context_ack
to video_driver.c
2015-11-29 20:44:51 +01:00
twinaphex c62150c2a2 Move video_data_own to gfx/video_driver.c 2015-11-29 20:23:16 +01:00
twinaphex be0857aff2 move video_pixel_scalar struct to gfx/video_driver.c 2015-11-29 01:48:25 +01:00
twinaphex 0044d853f8 Move display_type / display_window etc all to gfx/video_driver.c -
no more dependencies on driver_t
2015-11-29 01:12:49 +01:00
twinaphex cd51102281 Remove scaler_get_ptr 2015-11-24 01:50:37 +01:00
twinaphex 51291067eb video_driver.c) Turn some functions static 2015-11-24 01:30:52 +01:00
twinaphex 1f62479068 move video_frame to gfx/video_driver.c 2015-11-24 01:26:59 +01:00
twinaphex deae90e0bb Move use_rgba to gfx/video_driver.c - get rid of driver_t dependencies 2015-11-23 23:58:40 +01:00
twinaphex 06035875f2 Divorce video poke interface from driver_t struct 2015-11-23 22:14:39 +01:00
twinaphex 672a3814d6 Create more VIDEO_DRIVER_CTL_ commands 2015-11-23 18:01:46 +01:00
twinaphex c7dc83533a Add param to video_driver_get_ptr for grabbing the nonthreaded
data state
2015-11-23 16:06:09 +01:00
twinaphex 76d6378228 Go through video_driver_ctl 2015-11-23 15:01:49 +01:00
twinaphex 2e3c3d25b5 Create video_driver_frame 2015-11-23 14:53:56 +01:00
twinaphex 1bd2f2eb8a Make some pixel converter functions static 2015-11-23 13:05:50 +01:00
twinaphex beceaf4a8c Merge video_pixel_converter.c with video_driver.c 2015-11-23 13:02:24 +01:00
twinaphex 86504392b9 Create video_driver_set_size 2015-11-23 12:54:15 +01:00
twinaphex 85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex aa1e8dc543 (menu_setting) Refactor this macro mess 2015-11-21 16:32:22 +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 cf5533ccaa Refactor away video_viewport_reset_custom 2015-11-21 12:36:14 +01:00
twinaphex e3c09e00b9 Move setting to function 2015-11-21 11:22:34 +01:00
twinaphex 35aef696ea Add RARCH_DISPLAY_CTL_DEFAULT_SETTINGS 2015-11-21 09:55:08 +01:00
twinaphex 30272dd413 Create 'loading and saving' of configuration settings for video_driver_ctl 2015-11-21 09:32:51 +01:00
twinaphex de44911092 (PS3/Wii) Reimplement video resolution code 2015-11-21 08:39:46 +01:00
twinaphex e09e65e348 Add RARCH_DISPLAY_CTL_GET_NEXT_VIDEO_OUT 2015-11-20 21:20:12 +01:00
twinaphex a7cb5b8491 Add RARCH_DISPLAY_CTL_MONITOR_ADJUST_SYSTEM_RATES 2015-11-20 20:47:47 +01:00
twinaphex e1ac9aed6b Add RARCH_DISPLAY_CTL_MONITOR_RESET 2015-11-20 19:04:00 +01:00
twinaphex 21cabec759 Add RARCH_DISPLAY_CTL_{DEINIT/INIT} 2015-11-20 19:01:13 +01:00
twinaphex c1fa9dc637 Make video_driver_unset_callback a static function 2015-11-20 18:57:04 +01:00
twinaphex 0184a73de8 init_video - cleanups 2015-11-20 18:55:01 +01:00
twinaphex ddde58caf4 Simplify video_driver_get_ptr 2015-11-20 18:50:21 +01:00
twinaphex 9ea40f5e32 Add RARCH_DISPLAY_CTL_SET_ASPECT_RATIO 2015-11-20 18:45:00 +01:00
twinaphex 5069d71295 Cleanups 2015-11-20 18:41:25 +01:00
twinaphex d68401aa4d Add RARCH_DISPLAY_CTL_SHOW_MOUSE 2015-11-20 17:26:39 +01:00
twinaphex 3e986f9562 Add RARCH_DISPLAY_CTL_SET_NONBLOCK_STATE 2015-11-20 17:22:19 +01:00
twinaphex a59ca22457 Add RARCH_DISPLAY_CTL_FIND_DRIVER 2015-11-20 15:59:01 +01:00
twinaphex 704ff87b12 Add RARCH_DISPLAY_CTL_APPLY_STATE_CHANGES 2015-11-20 15:55:09 +01:00
twinaphex 09dda14549 Add RARCH_DISPLAY_CTL_READ_VIEWPORT 2015-11-20 15:41:20 +01:00
twinaphex d8eeed0a9e Add RARCH_DISPLAY_CTL_CACHED_FRAME_HAS_VALID_FB 2015-11-20 15:38:10 +01:00
twinaphex 6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
twinaphex 5cea9e5400 Add RARCH_DISPLAY_CTL_IS_FOCUSED 2015-11-20 15:24:24 +01:00
twinaphex 7141210d15 Remove video_driver_has_windowed 2015-11-20 15:20:54 +01:00
twinaphex ba4643a7c1 Add RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT 2015-11-20 15:16:58 +01:00
twinaphex 7b1f57b1cd Add RARCH_DISPLAY_CTL_FRAME_FILTER_ALIVE 2015-11-20 15:14:12 +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 3d6f6869f0 Create win32_has_focus 2015-11-17 08:58:49 +01:00
Alcaro f4a5cbbe5b Add this half-finished (okay, 5%-finished) driver. 2015-10-11 09:50:49 +02:00
Sergi Granell 3b54e81d00 (Vita) Start vita2d_gfx video driver 2015-08-30 20:12:16 +02:00
twinaphex 0c023dcb68 Reimplement frame count 2015-08-03 23:01:07 +02:00
twinaphex 4787c463b6 Backport this - 58748da89d 2015-07-27 00:08:25 +02:00
twinaphex 2aac64552d Cut down on some more superfluous wrapper functions 2015-07-12 11:28:19 +02:00
twinaphex 117fd48f15 Get rid of some superfluous wrapper functions 2015-07-12 11:14:41 +02:00
twinaphex a132fa0fba Some C89 build fixes 2015-06-26 15:53:18 +02:00
Higor Eurípedes 96742263d1 Fix raw screenshots 2015-06-17 09:29:09 -03:00
twinaphex 63aa834414 Create video_driver_cached_frame_has_valid_fb 2015-05-20 21:29:23 +02:00
twinaphex ac8d58b7bb Create video_driver_cached_frame_set 2015-05-20 21:13:25 +02:00
twinaphex cf2c0f6930 Rename rarch_render_cached_frame to video_driver_cached_frame 2015-05-20 21:06:44 +02:00
twinaphex d2b76a7d13 Move pix_fmt to video_state 2015-05-20 20:59:12 +02:00
twinaphex 197820c797 Move filter state code to video_state and out of global 2015-05-20 20:49:52 +02:00
twinaphex a81baed9e2 Move hw_render_callbakc to video driver state and take it out
of global state
2015-05-20 19:56:12 +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 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
twinaphex d64655c11b move menu_display_get_size to gfx/video_driver.c and rename
it video_driver_get_size
2015-05-20 00:29:46 +02:00
twinaphex 5aeb906065 Create video_driver_get_frame_count 2015-05-09 15:54:51 +02:00
twinaphex ae408a1d41 Create video_poke get_frame_count function 2015-05-09 15:52:06 +02:00
twinaphex a9dee4877e Create set_viewport wrapper function - threaded video mode's
set_viewport function does not work yet
2015-04-26 19:46:59 +02:00
twinaphex d3dba0edc2 Create menu_display_set_viewport 2015-04-26 16:46:56 +02:00
twinaphex c22535b7e1 Reduce HAVE_FBO ifdefs 2015-04-25 02:35:06 +02:00
twinaphex c5cdd729db Create video_driver_suppress_screensaver 2015-04-11 06:12:27 +02:00
Twinaphex db2dd5010b Merge pull request #1559 from aliaspider/master
preliminary 3DS port.
2015-04-01 23:18:12 +02:00
aliaspider 2045cee432 preliminary 3DS port. 2015-04-01 22:14:13 +01:00
Jean-André Santoni 158c79ed9e (Menu) Improved text alignment for gl menu drivers 2015-03-31 14:00:30 +02:00
twinaphex 4f6a3532f6 Create video_driver_frame wrapper function 2015-03-24 13:27:38 +01:00