Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DesktopGL for documentation generation #8142

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions MonoGame.Framework/MonoGame.Framework.DesktopGL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@

<ItemGroup>
<Compile Remove="Graphics\GraphicsAdapter.cs" />
<Compile Remove="Media\Video.cs" />
<Compile Remove="Media\VideoPlayer.cs" />
<Compile Remove="Content\ContentReaders\VideoReader.cs" />
<Compile Remove="Input\MessageBox.cs" />
<Compile Remove="Input\KeyboardInput.cs" />
</ItemGroup>

<ItemGroup>
Expand All @@ -60,14 +55,18 @@
<Compile Include="Platform\Media\MediaLibrary.Default.cs" />
<Compile Include="Platform\Media\MediaPlayer.Default.cs" />
<Compile Include="Platform\Media\Song.NVorbis.cs" />
<Compile Include="Platform\Media\VideoPlayer.Default.cs" />
<Compile Include="Platform\Media\Video.Default.cs" />
<Compile Include="Platform\Input\GamePad.SDL.cs" />
<Compile Include="Platform\Input\InputKeyEventArgs.cs" />
<Compile Include="Platform\Input\Joystick.SDL.cs" />
<Compile Include="Platform\Input\Keyboard.SDL.cs" />
<Compile Include="Platform\Input\KeyboardUtil.SDL.cs" />
<Compile Include="Platform\Input\KeyboardInput.Default.cs" />
<Compile Include="Platform\Input\KeysHelper.cs" />
<Compile Include="Platform\Input\Mouse.SDL.cs" />
<Compile Include="Platform\Input\MouseCursor.SDL.cs" />
<Compile Include="Platform\Input\MessageBox.Default.cs" />
<Compile Include="Platform\Graphics\GraphicsContext.SDL.cs" />
<Compile Include="Platform\Graphics\OpenGL.SDL.cs" />
<Compile Include="Platform\Graphics\WindowInfo.SDL.cs" />
Expand Down
21 changes: 21 additions & 0 deletions MonoGame.Framework/Platform/Media/Video.Default.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.

using System;

namespace Microsoft.Xna.Framework.Media
{
public sealed partial class Video : IDisposable
{
private void PlatformInitialize()
{
throw new NotImplementedException("Video is not implemented on this platform.");
}

private void PlatformDispose(bool disposing)
{
throw new NotImplementedException("Video is not implemented on this platform.");
}
}
}
72 changes: 72 additions & 0 deletions MonoGame.Framework/Platform/Media/VideoPlayer.Default.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// 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.

using System;
using Microsoft.Xna.Framework.Graphics;

namespace Microsoft.Xna.Framework.Media
{
public sealed partial class VideoPlayer : IDisposable
{
private void PlatformInitialize()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private Texture2D PlatformGetTexture()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformGetState(ref MediaState result)
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformPause()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformResume()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformPlay()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformStop()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformSetIsLooped()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformSetIsMuted()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private TimeSpan PlatformGetPlayPosition()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformSetVolume()
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}

private void PlatformDispose(bool disposing)
{
throw new NotImplementedException("VideoPlayer is not implemented on this platform.");
}
}
}
Loading