Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0f90713aba
Added addition error logging to graphics.log when SDL fails
2022-04-16 22:37:05 +02:00
penev92
ab09ce21b4
Changed code to use object initializers everywhere
2022-01-23 13:14:57 +01:00
Paul Chote
c958bf9680
Restore threaded renderer.
2021-09-26 15:19:20 +02:00
Paul Chote
4eefa637a3
Remove obsolete threaded renderer workarounds.
2021-09-20 22:33:25 +02:00
Matthias Mailänder
f08a0b113e
Allow mods to customize application title.
2021-09-19 22:29:50 +02:00
Paul Chote
5eb4c6a0bb
Set _KDE_NET_WM_DESKTOP_FILE x11 window property.
...
This explicitly tells KDE to associate the OpenRA window with
the integrated appimage desktop file, allowing it to use the
correct resolution icon for the task switcher.
2021-08-16 20:18:00 +02:00
abcdefg30
b8ba1b36fe
Don't throw an exception when creating a hardware cursor fails
2021-08-14 17:11:34 +01:00
abcdefg30
ba7e1319ac
Remove DisableWindowsRenderThread and use threaded renderering for non windowed mode
2021-08-07 14:49:09 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
abcdefg30
3276373745
Pause rendering when the window is minimized
2021-04-26 21:56:20 +01:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
597b8b1caa
Hide legacy GL support behind a feature flag.
2020-10-12 12:24:22 +02:00
Paul Chote
2c0d512727
Package and default to GLES via ANGLE on windows.
2020-10-12 12:24:22 +02:00
Paul Chote
e5dc0309f1
Support OPENRA_DISPLAY_SCALE environment variable on Windows.
2020-09-12 00:37:20 +02:00
Brent Gardner
283b330403
Workaround for GLES 2.0 hardware
2020-09-01 18:00:51 +02:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
8d27d22100
Use discard syntax
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
Paul Chote
dac1f270ce
Restore legacy OpenGL 2.1 support.
2020-04-25 21:03:43 +02:00
Paul Chote
839be24053
Replace PreferGLES settings flag with GLProfile enum.
2020-04-25 21:03:43 +02:00
abcdefg30
3ba86f329f
Remove Game.HasInputFocus
2020-04-17 22:26:03 -05:00
Paul Chote
1485194ef3
Automatically scale DPI under Linux.
2020-02-16 13:44:50 +01:00
Martin Bertsche
98aef70e88
Added display selection option to settings for fullscreen modes.
2020-02-08 18:14:35 +00:00
Paul Chote
9a0916afbb
Add UI Scale dropdown to the settings menu.
2020-02-04 19:56:15 +01:00
Paul Chote
6388a6bff4
Add Graphics.UIScale setting to modify UI size.
2020-02-04 19:56:15 +01:00
Paul Chote
bf314fdc7b
Define window size in effective pixel coordinates.
2020-01-26 20:22:49 +01:00
Paul Chote
f0033c44c7
Use full window resolution on Windows.
2020-01-26 20:22:49 +01:00
Paul Chote
f7e5111123
Apply cursor doubling setting without requiring a restart.
2020-01-26 17:11:45 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
656a260171
Add VSync setting.
2019-12-26 17:25:38 +01:00
Paul Chote
b0c65c5eb9
Overhaul cursor double setting.
2019-12-11 13:38:52 +01:00
Paul Chote
010fafc6d3
Fix hardware cursors on systems with >150% DPI scaling.
2019-12-11 13:38:52 +01:00
Paul Chote
ce8112fb5a
Migrate rendering to OpenGL 3.2 / OpenGL ES 3.0.
2019-09-12 18:58:37 +01:00
Paul Chote
c0ee346c1c
Render via an intermediate frame buffer.
2019-09-04 20:20:04 +02:00
teinarss
f325a4d190
Relative mouse pos
2019-06-27 23:34:16 +02:00
teinarss
f07fb57e98
Rework relative mouse events.
2019-06-27 23:34:16 +02:00
teinarss
ffd3834849
Lock mouse position
2019-06-27 23:34:16 +02:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
cc004b3546
Fix compatibility with macOS's dark mode.
2018-12-30 23:57:06 +00:00
rtri
cdfa52d918
fix threadedRenderer context creation logic
2018-08-23 01:50:18 +02:00
Paul Chote
3661dbdfd0
Disable the threaded renderer on Windows.
...
A DisableWindowsRenderThread graphics setting is
added to allow players to optionally reenable it.
2018-08-04 20:10:52 +02:00
Paul Chote
8ec3df7550
Fix recently introduced bad line endings.
2018-06-30 16:54:25 +01:00
RoosterDragon
bb536ee4fc
Run graphics rendering on a dedicated thread.
...
The main game thread can offload some of the CPU cost to the rendering thread, freeing up its time to run more logic and render ticks.
2018-06-22 18:40:16 +01:00
Paul Chote
ea068a36f7
Allow window size/scale properties to be accessed from other threads.
2018-06-22 18:40:16 +01:00
Paul Chote
9ff177359b
Split IGraphicsContext from IPlatformWindow.
2018-06-13 18:45:21 +01:00
Paul Chote
28c8089bc7
Rename IGraphicsDevice to IPlatformWindow.
2018-06-13 18:45:21 +01:00