Paul Chote
a6d393f19b
Fix a crash when using legacy GL.
2021-05-04 09:46:31 +02:00
abcdefg30
3276373745
Pause rendering when the window is minimized
2021-04-26 21:56:20 +01:00
CrazyAlex25
2d05e10819
Modify build properties
2021-04-12 00:44:17 +02:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
teinarss
ed43071792
Compile engine and mod dlls as NET5 when not using mono
2021-03-07 16:04:57 +00:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
67754e8693
Add alpha support to SpriteRenderer.
2021-01-06 00:06:51 +01:00
teinarss
5e74e58b22
Add support for dotnet core for Windows
2021-01-01 19:42:01 +01:00
Paul Chote
20fe59e844
Output compiled binaries to ./bin.
2020-11-24 17:53:48 +01:00
Paul Chote
1cc1f93fb0
Rename Platform.GameDir to Platform.EngineDir.
2020-11-24 17:53:48 +01:00
RoosterDragon
e11c8436bd
Misc changes to reduce allocation:
...
- Avoid creating new strings in SpriteRenderer.Flush.
- ProductionQueue.CancelUnbuildableItems can exit early if the queue is empty. It can also use a set of names for quicker lookups.
- OpenGL.CheckGLError avoids a Enum.HasFlag call.
2020-10-17 23:48:48 +02:00
RoosterDragon
b2b639434c
ThreadedGraphicsContext improvements.
...
- VertexBuffer interface redefined to remove an IntPtr overload for SetData. This removes some unsafe code in TerrainSpriteLayer. This also allows the ThreadedVertexBuffer to use a buffer and post these calls, meaning the SetData call can now be non-blocking.
- ThreadedTexture SetData now checks the incoming array size. As the arrays sent here are usually large (megabytes) this allows us to avoid creating temp arrays in the LOH and skip Array.Copy calls on large arrays. This means the call is now blocking more often, but significantly reduces memory churn and GC Gen2 collections.
2020-10-13 15:54:53 +02: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
fc844cfa6d
Print the GL_RENDERER string to stdout on engine start.
2020-10-12 12:24:22 +02:00
Paul Chote
1ab1c30e39
Remove glGetTexImage/glBindFragDataLocation on GLES.
...
These functions are not available in GLES3.
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
teinarss
19b02875c7
Use Tuple syntax
2020-08-15 10:37:10 +01:00
Stuart McHattie
8c10dc406a
Prevent Mac's Cmd+Q from exiting the game
...
This operation can be devastating if you were trying to assign a control group using Cmd + 1 but accidentally catch the Q key during gameplay.
2020-07-28 23:12:39 +01:00
Paul Chote
ac7eda8ca2
Add support for rendering tinted artwork.
2020-07-13 14:02:02 +02:00
Paul Chote
7ebca36a9c
Disable debug callbacks on Intel HD 4000.
2020-04-25 21:03:43 +02: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
Paul Chote
91c4179f05
Split GLProfile from GLFeatures.
2020-04-25 21:03:43 +02:00
teinarss
e13fd693c3
Add Nuget packages for all dependencies
2020-04-18 11:36:25 -05:00
abcdefg30
3ba86f329f
Remove Game.HasInputFocus
2020-04-17 22:26:03 -05:00
Zimmermann Gyula
8b7e72b95e
Add three additional blending modes.
2020-04-07 22:00:31 +02:00
Paul Chote
1485194ef3
Automatically scale DPI under Linux.
2020-02-16 13:44:50 +01:00
Paul Chote
7b4019577d
Force disable glDebugMessageCallback on Linux+AMD.
2020-02-15 11:38:30 +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
25a7299c67
Fix scroll event position calculation.
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
Paul Chote
1fada0f2b4
Add KHR suffix as defined by the KHR_debug spec.
2020-01-25 13:44:06 +01:00
Paul Chote
b08f9886be
Add Graphics.DisableGLDebugMessageCallback setting.
2020-01-25 13:44:06 +01:00
Paul Chote
d622015b59
Fix Texture.GetData under GLES.
2020-01-12 17:04:23 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
4052620f94
Rename dummy sound label to "No Sound Output".
2019-12-29 17:53:44 +01: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
0c8a47b5af
Add scissor support to IFrameBuffer.
2019-12-08 04:36:31 +01:00
Abdurrahmaan Iqbal
72eb4e1749
Fix #17230 : Dummy audio output class
2019-11-14 23:46:14 +01:00