Skip to content

Commit

Permalink
Merge pull request #296 from FUSEEProjectTeam/feature/OpenTK4
Browse files Browse the repository at this point in the history
Feature/OpenTK4
  • Loading branch information
ASPePeX authored Apr 16, 2021
2 parents 7eacaad + 9ce7197 commit 8c3a93a
Show file tree
Hide file tree
Showing 55 changed files with 213 additions and 550 deletions.
3 changes: 1 addition & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@
<!--
Suppress warnings
1701 and 1702 is standard.
NU1701: Package restore of OpenTK 3.1 with net462 - remove after update to OpenTK 4
-->
<NoWarn>1701;1702;NU1701</NoWarn>
<NoWarn>1701;1702</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.AdvancedUI.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.Bone.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.Camera.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.GeometryEditing.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.Materials.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.MeshingAround.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.NormalMap.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.Picking.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.RenderLayer.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.Simple.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.SimpleDeferred.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.SurfaceEffects.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.ThreeDFont.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<PackageReference Include="protobuf-net" Version="3.0.62" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
</ItemGroup>
<!-- Fusee References -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="..\Core\Fusee.Examples.UI.Core.csproj" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
5 changes: 1 addition & 4 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="wasm" value="packages" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
2 changes: 1 addition & 1 deletion src/Base/Imp/Android/Fusee.Base.Imp.Android.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.54">
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
<PropertyGroup>
<TargetFramework>MonoAndroid81</TargetFramework>
<DefineConstants>$(DefineConstants);PLATFORM_ANDROID</DefineConstants>
Expand Down
9 changes: 6 additions & 3 deletions src/Base/Imp/Desktop/EmbeddedResourcesDllHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ public static void LoadEmbeddedDll(string dllName, string resourceName)
// See if the file exists, avoid rewriting it if not necessary
string dllPath = Path.Combine(dirName, dllName);

using (var fileStream = File.Create(dllPath))
if (!File.Exists(dllPath))
{
resourceStream.Seek(0, SeekOrigin.Begin);
resourceStream.CopyTo(fileStream);
using (var fileStream = File.Create(dllPath))
{
resourceStream.Seek(0, SeekOrigin.Begin);
resourceStream.CopyTo(fileStream);
}
}

IntPtr h = LoadLibrary(dllPath);
Expand Down
2 changes: 1 addition & 1 deletion src/Base/Imp/Desktop/Fusee.Base.Imp.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SharpFontStandard" Version="4.0.1" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions src/Engine/Common/RCEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,10 @@ public enum Gamepad : int
X = 1,
Y = 2,
B = 3,
Start = 4,
Back = 5,
LeftShoulder = 6,
RightShoulder = 7,
Start = 7,
Back = 6,
LeftShoulder = 4,
RightShoulder = 5,
L3 = 8,
R3 = 9,
DPadUp = 10,
Expand Down
9 changes: 7 additions & 2 deletions src/Engine/Core/SceneRendererForward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,17 @@ private set
protected Animation _animation;

/// <summary>
/// The Scene, containing the scene that gets rendered.
/// The <see cref="SceneContainer"/>, containing the scene that gets rendered.
/// </summary>
protected SceneContainer _sc;

/// <summary>
/// The RenderContext, used to render the scene. This will be ignored if cameras are used.
/// The <see cref="SceneContainer"/>, containing the scene that gets rendered.
/// </summary>
public SceneContainer SC { get => _sc; }

/// <summary>
/// The <see cref="RenderContext"/>, used to render the scene. This will be ignored if cameras are used.
/// </summary>
protected RenderContext _rc;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.54">
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
<PropertyGroup>
<TargetFramework>MonoAndroid81</TargetFramework>
<DefineConstants>$(DefineConstants);PLATFORM_ANDROID</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="OpenTK" Version="3.2.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
<PackageReference Include="OpenTK" Version="4.6.3" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>

<Import Project="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Shared\Fusee.Engine.Imp.Graphics.Shared.projitems" Label="Shared" />
Expand Down
Loading

0 comments on commit 8c3a93a

Please sign in to comment.