forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stubs for the Native platform (MonoGame#8191)
- Loading branch information
Showing
51 changed files
with
1,478 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.31903.59 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Framework.Native", "MonoGame.Framework\MonoGame.Framework.Native.csproj", "{56BA741D-6AF1-489B-AB00-338DE11B1D32}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{56BA741D-6AF1-489B-AB00-338DE11B1D32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{56BA741D-6AF1-489B-AB00-338DE11B1D32}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{56BA741D-6AF1-489B-AB00-338DE11B1D32}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{56BA741D-6AF1-489B-AB00-338DE11B1D32}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<DefineConstants>XNADESIGNPROVIDED;NATIVE;SUPPORTS_EFX;NETSTANDARD;STBSHARP_INTERNAL</DefineConstants> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<Description>The MonoGame Native platform.</Description> | ||
<PackageTags>monogame;.net core;core;.net standard;standard;native</PackageTags> | ||
<PackageId>MonoGame.Framework.Native</PackageId> | ||
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath> | ||
<CopyContentFiles>True</CopyContentFiles> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="bin\**\*" /> | ||
<Compile Remove="obj\**\*" /> | ||
<Compile Remove="Platform\**\*" /> | ||
<Compile Remove="Properties\**\*" /> | ||
<Compile Include="Platform\Native\**\*" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Remove="Platform\**\*" /> | ||
</ItemGroup> | ||
|
||
</Project> |
23 changes: 23 additions & 0 deletions
23
MonoGame.Framework/Platform/Native/ConstantBuffer.Native.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics; | ||
|
||
internal partial class ConstantBuffer | ||
{ | ||
private void PlatformInitialize() | ||
{ | ||
|
||
} | ||
|
||
private void PlatformClear() | ||
{ | ||
|
||
} | ||
|
||
internal void PlatformApply(GraphicsDevice device, ShaderStage stage, int slot) | ||
{ | ||
|
||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
MonoGame.Framework/Platform/Native/DepthStencilState.Native.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics; | ||
|
||
public partial class DepthStencilState | ||
{ | ||
internal void PlatformApplyState(GraphicsDevice device) | ||
{ | ||
|
||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
MonoGame.Framework/Platform/Native/DynamicSoundEffectInstance.Native.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Audio; | ||
|
||
public sealed partial class DynamicSoundEffectInstance : SoundEffectInstance | ||
{ | ||
private void PlatformCreate() | ||
{ | ||
} | ||
|
||
private int PlatformGetPendingBufferCount() | ||
{ | ||
return 0; | ||
} | ||
|
||
private void PlatformPlay() | ||
{ | ||
} | ||
|
||
private void PlatformPause() | ||
{ | ||
} | ||
|
||
private void PlatformResume() | ||
{ | ||
} | ||
|
||
private void PlatformStop() | ||
{ | ||
} | ||
|
||
private void PlatformSubmitBuffer(byte[] buffer, int offset, int count) | ||
{ | ||
} | ||
|
||
private void PlatformDispose(bool disposing) | ||
{ | ||
} | ||
|
||
private void PlatformUpdateQueue() | ||
{ | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
MonoGame.Framework/Platform/Native/EffectResource.Native.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics; | ||
|
||
internal partial class EffectResource | ||
{ | ||
// TODO: These should be loaded from the native library and not from the C# embedded resources! | ||
const string AlphaTestEffectName = "Microsoft.Xna.Framework.Platform.Graphics.Effect.Resources.AlphaTestEffect.ogl.mgfxo"; | ||
const string BasicEffectName = "Microsoft.Xna.Framework.Platform.Graphics.Effect.Resources.BasicEffect.ogl.mgfxo"; | ||
const string DualTextureEffectName = "Microsoft.Xna.Framework.Platform.Graphics.Effect.Resources.DualTextureEffect.ogl.mgfxo"; | ||
const string EnvironmentMapEffectName = "Microsoft.Xna.Framework.Platform.Graphics.Effect.Resources.EnvironmentMapEffect.ogl.mgfxo"; | ||
const string SkinnedEffectName = "Microsoft.Xna.Framework.Platform.Graphics.Effect.Resources.SkinnedEffect.ogl.mgfxo"; | ||
const string SpriteEffectName = "Microsoft.Xna.Framework.Platform.Graphics.Effect.Resources.SpriteEffect.ogl.mgfxo"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Input; | ||
|
||
static partial class GamePad | ||
{ | ||
private static int PlatformGetMaxNumberOfGamePads() | ||
{ | ||
return 16; | ||
} | ||
|
||
private static GamePadCapabilities PlatformGetCapabilities(int index) | ||
{ | ||
return new GamePadCapabilities(); | ||
} | ||
|
||
private static GamePadState PlatformGetState(int index, GamePadDeadZone leftDeadZoneMode, GamePadDeadZone rightDeadZoneMode) | ||
{ | ||
return new GamePadState(); | ||
} | ||
|
||
private static bool PlatformSetVibration(int index, float leftMotor, float rightMotor, float leftTrigger, float rightTrigger) | ||
{ | ||
return false; | ||
} | ||
} |
Oops, something went wrong.