Removed bundled GLXAttribute enum.

This commit is contained in:
Jarl Gullberg 2017-06-25 13:44:19 +02:00
parent 2f1e49c667
commit 2186ad2293
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23
3 changed files with 13 additions and 38 deletions

View file

@ -143,7 +143,6 @@
</Compile> </Compile>
<Compile Include="GLWidget.cs" /> <Compile Include="GLWidget.cs" />
<Compile Include="Win\WinWindowsInfoInitializer.cs" /> <Compile Include="Win\WinWindowsInfoInitializer.cs" />
<Compile Include="X11\GLXAttribute.cs" />
<Compile Include="X11\XWindowInfoInitializer.cs" /> <Compile Include="X11\XWindowInfoInitializer.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View file

@ -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
}
}

View file

@ -95,48 +95,48 @@ namespace OpenTK.X11
if (mode.Buffers > 1) if (mode.Buffers > 1)
{ {
attributeList.Add((int)GLXAttribute.DoubleBuffer); attributeList.Add((int)GLXAttribute.DOUBLEBUFFER);
} }
if (mode.Stereo) 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(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(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(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(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(mode.Depth);
attributeList.Add((int)GLXAttribute.StencilSize); attributeList.Add((int)GLXAttribute.STENCIL_SIZE);
attributeList.Add(mode.Stencil); attributeList.Add(mode.Stencil);
//attributeList.Add(GLX_AUX_BUFFERS); //attributeList.Add(GLX_AUX_BUFFERS);
//attributeList.Add(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(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(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(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(mode.AccumulatorFormat.Alpha / 4);// TODO support 16-bit
attributeList.Add((int)GLXAttribute.None); attributeList.Add((int)GLXAttribute.NONE);
return attributeList; return attributeList;
} }