Commit graph

50 commits

Author SHA1 Message Date
Struma
ffec966ad7 fix whatever 5c69aeaeab (r105961101) is about 2023-04-25 22:48:24 -04:00
Eblo
5c69aeaeab Convert movie playback to use OpenAL instead of SDL for audio
Use OpenAL instead of SDL for processing movie playback audio
Make sure video and audio are in sync based on playback position
General code cleanup of movie playback
2023-02-15 07:52:33 -05:00
Zorua
6007c45c8a Add Graphics.display_width & Graphics.display_height 2022-09-24 03:09:53 -04:00
Snowdream
58de823d41 Move rqWindowAdjust.set() to EventThread 2022-07-24 03:50:06 -04:00
Snowdream
dba559aafb Make Graphics thread-safety optional 2022-07-16 20:16:09 -04:00
Snowdream
b0e08f60bb Should actually check for integerScalingActive before rebuilding the buffer 2022-07-12 00:54:32 -04:00
Snowdream
2a7ac88668 Always rebuild int scale buffer on resize_screen 2022-07-12 00:41:55 -04:00
Snowdream
e5e5a3a5e0 update stored window values before resizing it 2022-07-09 05:20:41 -04:00
Struma
d4dc31af9e Add Graphics.resize_window 2022-07-05 08:42:26 -04:00
Struma
63442ee5d9 Correctly report Graphics.scale after HiDPI changes 2022-07-05 07:38:44 -04:00
Struma
45f870b86c Fix integer scaling bugs
- Black screen when resizing below 1x
- int scaling causing incorrectly scaled image after resize
- display offset being completely off without lastmile on macOS
2022-07-05 00:02:24 -04:00
Struma
4b46d6e47d remove commonDataPath and update mkxp.json to match the actual behavior 2022-07-04 11:18:22 -04:00
Struma
183cea7046 Fix reported mouse coordinates when scaled for HiDPI 2022-07-04 09:40:57 -04:00
Struma
158c988399 Make macOS happy. 2022-07-04 06:22:07 -04:00
Struma
2a7ff4b7f3 Bind new graphics functions ruby-side 2022-07-03 10:01:07 -04:00
Struma
ee74bffc83 Add integer scaling options 2022-07-03 06:59:46 -04:00
Struma
27f3a404d3 fix the z level of play_movie sprites 2022-03-19 20:43:17 +00:00
Struma
64dad2ad27 Good enough to release (?) 2022-01-23 18:29:08 -05:00
Struma
85fe2b070a miscellaneous garbage 2022-01-23 09:54:33 -05:00
Struma
5855266dab make the terrifying sign-compare warnings go away 2022-01-23 09:31:27 -05:00
Struma
27f7ee78e1 Videos should always stretch to fit 2022-01-23 06:20:13 -05:00
Struma
683b5af87e Prevent crashes when closing the window during video playback 2022-01-23 04:03:50 -05:00
Struma
84f95966ea Clean up videos some more, make them skippable
Also, revert a change I made to the button names internally
a long time ago, when the intent behind mkxp-z was possibly going to be
different.
2022-01-23 01:46:13 -05:00
Struma
45c5553619 clean up merge a bit 2022-01-21 00:38:13 -05:00
Eblo
3a6bae8c6d Add volume control to movie playback 2022-01-20 22:03:47 -05:00
Eblo
86a6c93d58 Revamp movie playback
Separated movie playback code
Load movie file via SDL, allowing any file extension
Removed dead audio code
2022-01-20 22:03:47 -05:00
Eblo
bdb7c77a75 Sync audio to movie playback
Buffer audio packets directly while decoding video instead of playing audio independently
2022-01-20 22:03:47 -05:00
Eblo
b4d468f29d Sync audio for movies and add optional volume control 2022-01-20 22:03:47 -05:00
Eblo
286b2b7658 Implement Graphics.play_movie
Render video frames and play audio for Graphics.play_movie
Added theora dependency for theora video format playback
Added icculus's theoraplay to project
2022-01-20 22:03:47 -05:00
Struma
6266670997 use syncToRefreshRate normally on macOS again 2022-01-20 15:34:48 -05:00
Struma
59d326ef4a Remove basically pointless build options 2021-10-14 05:28:32 -04:00
Struma
6eba6e0c69 Make Graphics.update wait for window resizes 2021-09-30 18:50:06 -04:00
Struma
63b40053ac Prevent relevant functions from stepping over Graphics.update when threading 2021-06-04 14:29:45 -04:00
Struma
fdb86f2ede Do not use GVL on possibly time-consuming functions 2021-06-02 08:42:32 -04:00
Struma
84c4f97c6c Add more detailed platform detection 2021-05-23 21:40:48 -04:00
Struma
f1f5f99133 Have window resizing functions properly wait on each other 2021-05-21 17:13:53 -04:00
Struma
699ffc0245 Support Retina displays 2021-05-21 16:28:51 -04:00
Struma
6fe980abc8 Massively improve animation frame timing 2021-05-04 23:32:01 -04:00
Struma
b3b0d3c48f separate Graphics.delta / average_frame_rate timer 2021-03-01 03:45:34 -05:00
Struma
03a9636105 temp fix for broken vsync on macOS 2021-03-01 02:10:05 -05:00
Struma
1683483170 Make FPS counter a little more accurate 2021-03-01 01:51:15 -05:00
Struma
ae9e292a1b add Graphics.average_frame_rate 2021-02-27 08:17:14 -05:00
Struma
286270b51e Update graphics delta at the start of update 2021-02-26 06:25:19 -05:00
Struma
02c06be88a Add Ruby-accessible delta clocks (microseconds) 2021-02-25 21:29:21 -05:00
Struma
d4d2b7c7cb Keep input repeat timings independent of FPS 2021-02-25 19:28:44 -05:00
Struma
2fd585393d the not-so-great warning purge 2021-02-22 01:22:26 -05:00
Struma
7db1c1219e Prefix mkxp-z preprocessor definitions with MKXPZ_ 2020-12-31 14:50:07 -05:00
Struma
c5f8ebef2e Fix Apple M1 OpenGL->Metal and SDL2_sound crashes 2020-12-26 17:46:01 -05:00
Struma
0e278c3e5c Drop ObjFW as a dependency 2020-11-22 03:48:03 -05:00
Struma
f98b1e031f Reorganize src dir 2020-11-21 01:36:24 -05:00
Renamed from src/graphics.cpp (Browse further)