mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-25 00:38:53 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using Sandbox;
|
|
|
|
internal struct RenderDeviceInfo_t
|
|
{
|
|
public int m_nVersion;
|
|
public RenderDisplayMode_t m_DisplayMode;
|
|
public int m_nBackBufferCount; // valid values are 1 or 2 [2 results in triple buffering]
|
|
public NativeEngine.RenderMultisampleType m_nMultisampleType;
|
|
public byte m_nModeUsage; // RENDER_DISPLAY_MODE usage flags for fullscreen/windowed.
|
|
public byte m_bUseStencil;
|
|
public byte m_bWaitForVSync; // Would we not present until vsync?
|
|
public byte m_bUsingMultipleWindows; // Forces D3DPresent to use _COPY instead
|
|
public byte m_bIsMainWindow;
|
|
|
|
public byte m_padding01;
|
|
}
|
|
|
|
internal struct RenderDisplayMode_t
|
|
{
|
|
public int m_nVersion;
|
|
public int m_nWidth; // 0 when running windowed means use desktop resolution
|
|
public int m_nHeight;
|
|
public ImageFormat m_Format; // use ImageFormats (ignored for windowed mode)
|
|
public int m_nRefreshRateNumerator; // Refresh rate. Use 0 in numerator + denominator for a default setting.
|
|
public int m_nRefreshRateDenominator; // Refresh rate = numerator / denominator.
|
|
public uint m_nFlags;
|
|
}
|