Commit Graph
172 Commits
Author SHA1 Message Date
Pieter-Jan Briers b4fac5256c More Clyde GL version things.
Correctly use KHR and OES suffixed functions for debug output and VAOs, if necessary.

Allow overriding the detected GL version for feature detection (nvidia gives me an ES 3.2 context even when ES 2.0 is requested, so...)
2020-09-02 22:10:50 +02:00
Pieter-Jan Briers 3ea73e9d2a Various OpenGL fixes.
1. Fixes screenshots on ES by providing a fallback path for when encessary features (PBO, fence sync, mapbuffer) are not available.
2. Correctly detect fence sync as not always being available for 3.1
3. Remove the "bad OpenGL version" box. We have MessageBoxW now.
4. Separated feature detection for ES and Desktop, added more feature detections on various sides.
5. Moved GL feature detection to its own file.
2020-09-02 01:47:12 +02:00
20kdcandGitHub 4f5d2664b8 Prevent gl_FragColor deprecation issues on GL3.3 (hopefully finally ending the saga of hotfixes) (#1270) 2020-09-01 20:40:55 +02:00
20kdcandGitHub 880be34b8d GLES2: hotfix: Use in/out to prevent core profile complaints (#1269) 2020-09-01 17:25:06 +02:00
20kdcandGitHub 4777a0adbf GLES2 users, assemble! (#1266) 2020-09-01 15:27:14 +02:00
Víctor Aguilera Puerto 59a003cda0 Add path to RSI class 2020-08-31 20:45:45 +02:00
Pieter-Jan Briers 0682dcf98c Sprinkle glGetError everywhere. 2020-08-27 02:11:46 +02:00
Pieter-Jan Briers cd5115fa85 The comment was right there, man. 2020-08-26 01:01:18 +02:00
Pieter-Jan BriersandGitHub 0b67c00057 Make a Windows message box if the game window can't be opened (#1260) 2020-08-25 23:23:55 +02:00
Pieter-Jan Briers 381cdb5fbb Add OpenGL 3.1 support.
h
2020-08-25 21:44:01 +02:00
Pieter-Jan Briers 7890c1b39c Fix bogus nullability errors from Rider.
None of these are actual nullability warnings but they make Rider shut up so.
2020-08-25 17:48:23 +02:00
Víctor Aguilera PuertoandGitHub afc5aa1075 Dispose of MIDI renderers on the MIDI thread (#1248) 2020-08-21 20:39:36 +02:00
9d1bec9bb2 Merge FloatMath and MathHelper (#1234)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2020-08-20 19:21:07 +02:00
Pieter-Jan Briers c72ea7194e Add RequestWindowAttention API. 2020-08-16 23:21:07 +02:00
Acruid 7d74c02c8d Fixed a bug with overlay drawing arguments.
Added mouse hover info about collision bodies in the collision overlay.
2020-08-08 16:56:14 -07:00
Pieter-Jan Briers a25861461e Small GLES compat fix.
Makes glTexImage2D call in render target creation pass legal arguments for GLES.
2020-08-06 13:31:55 +02:00
44bcbfa8e5 Misc changed needed for atmos (#1186)
* Add needed changes for atmos

* Get delays for RSI state

* Placement hijack can handle deletion on gridcoordinates

* Array serialization

* MapIndices to GridCoordinates

* CollidableComponent creates VirtualControllers using IDynamicTypeFactory

* Probability assert now prints chance

* Remove unused stuff, fix build

* Update documentation for map indices

* readability

* Removed unused using statements

* Remove ToAngle

* Fix messed up merge

* Fix MapIndices/GridCoordinates conversion

* Add "invalid" direction.

* Update Robust.Shared/Serialization/YamlObjectSerializer.cs

* Nullable fix

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2020-08-02 18:39:23 +02:00
Acruid 8e2914d520 Enums are hard :(
This fixes screenspace overlays not showing up, like flash and net graph.
2020-07-31 23:38:41 -07:00
Acruid a5125a0561 Allows Overlays to draw to multiple spaces on the screen.
Removed Overlay.Shader property, you need to manage the field yourself and apply the shader before you draw.
Made all overlays compatible with the new changes.
2020-07-31 14:00:12 -07:00
Acruid 3fd1a2f3fb Fill out cases for the shape switch.
Circle-Box collisions!

Circle Collisions!

PhysShapeCircle!
2020-07-31 12:02:41 -07:00
DrSmugleafandGitHub 011a06a7d8 Fix za buildo (#1202) 2020-07-30 13:46:17 +02:00
Acruid 3f5321853a Removed obsolete ScreenToWorld methods from EyeManager. 2020-07-29 16:54:01 -07:00
Acruid 0bf451d5d4 Turns out TransformComponent already has the matrix available to use. 2020-07-29 14:27:20 -07:00
Acruid b8e9e3634b Grid rendering can now render rotated grids. 2020-07-29 12:05:09 -07:00
Pieter-Jan Briers e5ddc4f654 Move light intersection check earlier, slight optimization.
Not sure why it wasn't like this in the first place.
2020-07-29 02:10:04 +02:00
Pieter-Jan Briers c482253b9d Clyde debug stats for light count. 2020-07-29 02:06:39 +02:00
16d50f3ecf Container light occlusion (#967)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2020-07-26 13:28:25 +02:00
Pieter-Jan Briers 6e35b37e0f Fix stretching bugs on odd viewport sizes. 2020-07-21 00:59:52 +02:00
Pieter-Jan Briers 00674d5624 Clean Clyde state at start of frame to make it more robust. 2020-07-18 23:10:32 +02:00
Pieter-Jan Briers 42b6ee9740 Fix BeforeUI screenshots. 2020-07-18 16:10:40 +02:00
Pieter-Jan Briers abdc5418e2 Clyde object resource management.
Objects now use IDisposable().
Finalizers.
2020-07-18 16:01:24 +02:00
ExpandGitHub eeabe9af02 Remember Window Size & Pos when switching to/from fullscreen (#1181) 2020-07-17 10:37:55 +02:00
Pieter-Jan Briers 7ea6b9c470 Minor cleanup and optimizations inside Clyde. 2020-07-16 16:00:31 +02:00
Pieter-Jan Briers 855e548651 Refactor Clyde internals so multiple viewports is possible. 2020-07-16 16:00:31 +02:00
Víctor Aguilera Puerto 4b7a5b4e93 Added method to get a RSI state frame at a specific second. 2020-07-15 14:29:19 +02:00
Víctor Aguilera Puerto 21d18731ba Overlay FrameUpdate is now protected internal. 2020-07-14 23:44:16 +02:00
Víctor Aguilera Puerto ce89b7c93d Overlay's FrameUpdate is now public. 2020-07-14 23:40:44 +02:00
Pieter-Jan Briers 9e7b50a12e Fix nullability. 2020-07-13 16:29:03 +02:00
Pieter-Jan Briers b7e224a56f Moving a ton of rendering code around and it somehow still works somewhat. 2020-07-13 16:27:43 +02:00
Pieter-Jan Briers bd699eeb57 Removed _queuedSpace from Clyde internals. 2020-07-12 19:14:29 +02:00
Pieter-Jan Briers f879ced75e Fix exception from client shutdown from logging inside Dispose() 2020-07-11 14:39:58 +02:00
Pieter-Jan Briers 4b3be2db3d ACTUALLY remove low res lights biasing hack. 2020-07-07 13:26:35 +02:00
437bf58e7b Input Handling + other cleanups to support click drag functionality (#1132)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2020-07-06 21:21:13 +02:00
Pieter-Jan Briers 9da67e6a66 Fix compiler warnings. 2020-06-30 19:27:25 +02:00
Pieter-Jan Briers daa5a34413 Guess we're doing render trees for lights and occluders aswell. 2020-06-29 20:23:08 +02:00
Pieter-Jan Briers 16b4262486 Remove dead code. 2020-06-29 16:19:11 +02:00
Pieter-Jan Briers b72b0e5984 Use a DynamicTree for sprite finding.
Significantly improves client CPU usage.
2020-06-29 16:18:11 +02:00
ClyybberandGitHub 2b6ed4852d Cleanup occlusion (#1138) 2020-06-22 12:32:29 +02:00
Tyler YoungandGitHub 368f6482e8 Provide fallback for Creative EFX OpenAL Extension in Clyde.Audio (#1137)
provide fallback for mac if it doesn't exist
2020-06-19 21:25:19 +02:00
Pieter-Jan BriersandGitHub af249f80c8 Improved click detection supporting features: (#1133)
* Improved click detection supporting features:

Clickable removed from engine
Texture/RSI load hooks for content
New sprite layer API

* Fix tests.
2020-06-18 02:25:02 +02:00