// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.UI
{
///
/// Parameters for the EOS_UI_PrePresent function.
///
public struct PrePresentOptions
{
///
/// Platform specific data.
///
public System.IntPtr PlatformSpecificData { get; set; }
internal void Set(ref PrePresentOptionsInternal other)
{
PlatformSpecificData = other.PlatformSpecificData;
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct PrePresentOptionsInternal : IGettable, ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_PlatformSpecificData;
public System.IntPtr PlatformSpecificData
{
get
{
return m_PlatformSpecificData;
}
set
{
m_PlatformSpecificData = value;
}
}
public void Set(ref PrePresentOptions other)
{
m_ApiVersion = UIInterface.PrepresentApiLatest;
PlatformSpecificData = other.PlatformSpecificData;
}
public void Set(ref PrePresentOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = UIInterface.PrepresentApiLatest;
PlatformSpecificData = other.Value.PlatformSpecificData;
}
}
public void Dispose()
{
Helper.Dispose(ref m_PlatformSpecificData);
}
public void Get(out PrePresentOptions output)
{
output = new PrePresentOptions();
output.Set(ref this);
}
}
}