mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-09 20:05:34 +00:00
Removed bundled GLXAttribute enum.
This commit is contained in:
parent
2f1e49c667
commit
2186ad2293
|
@ -143,7 +143,6 @@
|
|||
</Compile>
|
||||
<Compile Include="GLWidget.cs" />
|
||||
<Compile Include="Win\WinWindowsInfoInitializer.cs" />
|
||||
<Compile Include="X11\GLXAttribute.cs" />
|
||||
<Compile Include="X11\XWindowInfoInitializer.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
namespace OpenTK.X11
|
||||
{
|
||||
public enum GLXAttribute
|
||||
{
|
||||
None = 0,
|
||||
UseGL = 1,
|
||||
BufferSize = 2,
|
||||
Level = 3,
|
||||
RGBA = 4,
|
||||
DoubleBuffer = 5,
|
||||
Stereo = 6,
|
||||
AuxBuffers = 7,
|
||||
RedSize = 8,
|
||||
GreenSize = 9,
|
||||
BlueSize = 10,
|
||||
AlphaSize = 11,
|
||||
DepthSize = 12,
|
||||
StencilSize = 13,
|
||||
AccumRedSize = 14,
|
||||
AccumGreenSize = 15,
|
||||
AccumBlueSize = 16,
|
||||
AccumAlphaSize = 17
|
||||
}
|
||||
}
|
|
@ -95,48 +95,48 @@ namespace OpenTK.X11
|
|||
|
||||
if (mode.Buffers > 1)
|
||||
{
|
||||
attributeList.Add((int)GLXAttribute.DoubleBuffer);
|
||||
attributeList.Add((int)GLXAttribute.DOUBLEBUFFER);
|
||||
}
|
||||
|
||||
if (mode.Stereo)
|
||||
{
|
||||
attributeList.Add((int)GLXAttribute.Stereo);
|
||||
attributeList.Add((int)GLXAttribute.STEREO);
|
||||
}
|
||||
|
||||
attributeList.Add((int)GLXAttribute.RedSize);
|
||||
attributeList.Add((int)GLXAttribute.RED_SIZE);
|
||||
attributeList.Add(mode.ColorFormat.Red / 4); // TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.GreenSize);
|
||||
attributeList.Add((int)GLXAttribute.GREEN_SIZE);
|
||||
attributeList.Add(mode.ColorFormat.Green / 4); // TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.BlueSize);
|
||||
attributeList.Add((int)GLXAttribute.BLUE_SIZE);
|
||||
attributeList.Add(mode.ColorFormat.Blue / 4); // TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.AlphaSize);
|
||||
attributeList.Add((int)GLXAttribute.ALPHA_SIZE);
|
||||
attributeList.Add(mode.ColorFormat.Alpha / 4); // TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.DepthSize);
|
||||
attributeList.Add((int)GLXAttribute.DEPTH_SIZE);
|
||||
attributeList.Add(mode.Depth);
|
||||
|
||||
attributeList.Add((int)GLXAttribute.StencilSize);
|
||||
attributeList.Add((int)GLXAttribute.STENCIL_SIZE);
|
||||
attributeList.Add(mode.Stencil);
|
||||
|
||||
//attributeList.Add(GLX_AUX_BUFFERS);
|
||||
//attributeList.Add(Buffers);
|
||||
|
||||
attributeList.Add((int)GLXAttribute.AccumRedSize);
|
||||
attributeList.Add((int)GLXAttribute.ACCUM_RED_SIZE);
|
||||
attributeList.Add(mode.AccumulatorFormat.Red / 4);// TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.AccumGreenSize);
|
||||
attributeList.Add((int)GLXAttribute.ACCUM_GREEN_SIZE);
|
||||
attributeList.Add(mode.AccumulatorFormat.Green / 4);// TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.AccumBlueSize);
|
||||
attributeList.Add((int)GLXAttribute.ACCUM_BLUE_SIZE);
|
||||
attributeList.Add(mode.AccumulatorFormat.Blue / 4);// TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.AccumAlphaSize);
|
||||
attributeList.Add((int)GLXAttribute.ACCUM_ALPHA_SIZE);
|
||||
attributeList.Add(mode.AccumulatorFormat.Alpha / 4);// TODO support 16-bit
|
||||
|
||||
attributeList.Add((int)GLXAttribute.None);
|
||||
attributeList.Add((int)GLXAttribute.NONE);
|
||||
|
||||
return attributeList;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue