public PrimitiveRestartState(IndexBufferElementType indexElementType)
: base(OpenGL.GL_PRIMITIVE_RESTART, true)
{
switch (indexElementType)
{
case IndexBufferElementType.UByte:
this.RestartIndex = byte.MaxValue;
break;
case IndexBufferElementType.UShort:
this.RestartIndex = ushort.MaxValue;
break;
case IndexBufferElementType.UInt:
this.RestartIndex = uint.MaxValue;
break;
default:
break;
}
}