QueuePresent ABI break
parent
8022cd1011
commit
4acc2588e1
|
@ -1 +1 @@
|
||||||
Subproject commit f92137ccc6a12d1f1a908c7b97acb7f7b75d1641
|
Subproject commit 95cd22c48a68f93204b44bc508dec86b6be74e56
|
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using MoonWorks.Math;
|
using MoonWorks.Math;
|
||||||
|
using MoonWorks.Window;
|
||||||
using RefreshCS;
|
using RefreshCS;
|
||||||
|
|
||||||
namespace MoonWorks.Graphics
|
namespace MoonWorks.Graphics
|
||||||
|
@ -580,15 +581,16 @@ namespace MoonWorks.Graphics
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prepares a texture to be presented to the screen.
|
/// Prepares a texture to be presented to a window.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="texture">The texture to present.</param>
|
/// <param name="texture">The texture to present.</param>
|
||||||
/// <param name="destinationRectangle">The area of the screen to present to.</param>
|
/// <param name="destinationRectangle">The area of the window to present to.</param>
|
||||||
/// <param name="filter">The filter to use when the texture size differs from the destination rectangle.</param>
|
/// <param name="filter">The filter to use when the texture size differs from the destination rectangle.</param>
|
||||||
public void QueuePresent(
|
public void QueuePresent(
|
||||||
in Texture texture,
|
in Texture texture,
|
||||||
in Rect destinationRectangle,
|
in Rect destinationRectangle,
|
||||||
Filter filter
|
Filter filter,
|
||||||
|
OSWindow window
|
||||||
) {
|
) {
|
||||||
var refreshRect = destinationRectangle.ToRefresh();
|
var refreshRect = destinationRectangle.ToRefresh();
|
||||||
var refreshTextureSlice = new Refresh.TextureSlice
|
var refreshTextureSlice = new Refresh.TextureSlice
|
||||||
|
@ -611,20 +613,22 @@ namespace MoonWorks.Graphics
|
||||||
Handle,
|
Handle,
|
||||||
refreshTextureSlice,
|
refreshTextureSlice,
|
||||||
refreshRect,
|
refreshRect,
|
||||||
(Refresh.Filter)filter
|
(Refresh.Filter)filter,
|
||||||
|
window.Handle
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prepares a texture slice to be presented to the screen.
|
/// Prepares a texture slice to be presented to a window.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="textureSlice">The texture slice to present.</param>
|
/// <param name="textureSlice">The texture slice to present.</param>
|
||||||
/// <param name="destinationRectangle">The area of the screen to present to.</param>
|
/// <param name="destinationRectangle">The area of the window to present to.</param>
|
||||||
/// <param name="filter">The filter to use when the texture size differs from the destination rectangle.</param>
|
/// <param name="filter">The filter to use when the texture size differs from the destination rectangle.</param>
|
||||||
public void QueuePresent(
|
public void QueuePresent(
|
||||||
in TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
in Rect destinationRectangle,
|
in Rect destinationRectangle,
|
||||||
Filter filter
|
Filter filter,
|
||||||
|
OSWindow window
|
||||||
) {
|
) {
|
||||||
var refreshTextureSlice = textureSlice.ToRefreshTextureSlice();
|
var refreshTextureSlice = textureSlice.ToRefreshTextureSlice();
|
||||||
var refreshRect = destinationRectangle.ToRefresh();
|
var refreshRect = destinationRectangle.ToRefresh();
|
||||||
|
@ -634,38 +638,42 @@ namespace MoonWorks.Graphics
|
||||||
Handle,
|
Handle,
|
||||||
refreshTextureSlice,
|
refreshTextureSlice,
|
||||||
refreshRect,
|
refreshRect,
|
||||||
(Refresh.Filter) filter
|
(Refresh.Filter) filter,
|
||||||
|
window.Handle
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prepares a texture slice to be presented to the screen.
|
/// Prepares a texture slice to be presented to a window.
|
||||||
/// This particular variant of this method will present to the entire window area.
|
/// This particular variant of this method will present to the entire window area.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="textureSlice">The texture slice to present.</param>
|
/// <param name="textureSlice">The texture slice to present.</param>
|
||||||
/// <param name="filter">The filter to use when the texture size differs from the window size.</param>
|
/// <param name="filter">The filter to use when the texture size differs from the window size.</param>
|
||||||
public void QueuePresent(
|
public void QueuePresent(
|
||||||
in TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
Filter filter
|
Filter filter,
|
||||||
|
OSWindow window
|
||||||
) {
|
) {
|
||||||
Refresh.Refresh_QueuePresent(
|
Refresh.Refresh_QueuePresent(
|
||||||
Device.Handle,
|
Device.Handle,
|
||||||
Handle,
|
Handle,
|
||||||
textureSlice.ToRefreshTextureSlice(),
|
textureSlice.ToRefreshTextureSlice(),
|
||||||
IntPtr.Zero,
|
IntPtr.Zero,
|
||||||
(Refresh.Filter) filter
|
(Refresh.Filter) filter,
|
||||||
|
window.Handle
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prepares a texture to be presented to the screen.
|
/// Prepares a texture to be presented to a window.
|
||||||
/// This particular variant of this method will present to the entire window area.
|
/// This particular variant of this method will present to the entire window area.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="texture">The texture to present.</param>
|
/// <param name="texture">The texture to present.</param>
|
||||||
/// <param name="filter">The filter to use when the texture size differs from the window size.</param>
|
/// <param name="filter">The filter to use when the texture size differs from the window size.</param>
|
||||||
public void QueuePresent(
|
public void QueuePresent(
|
||||||
Texture texture,
|
Texture texture,
|
||||||
Filter filter
|
Filter filter,
|
||||||
|
OSWindow window
|
||||||
) {
|
) {
|
||||||
var refreshTextureSlice = new Refresh.TextureSlice
|
var refreshTextureSlice = new Refresh.TextureSlice
|
||||||
{
|
{
|
||||||
|
@ -687,7 +695,8 @@ namespace MoonWorks.Graphics
|
||||||
Handle,
|
Handle,
|
||||||
refreshTextureSlice,
|
refreshTextureSlice,
|
||||||
IntPtr.Zero,
|
IntPtr.Zero,
|
||||||
(Refresh.Filter) filter
|
(Refresh.Filter) filter,
|
||||||
|
window.Handle
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue