private static ArbCreateContext GetARBContextFlags(GraphicsContextFlags flags) { ArbCreateContext result = 0; result |= (flags & GraphicsContextFlags.Debug) != 0 ? ArbCreateContext.DebugBit : 0; return(result); }
private static ArbCreateContext GetARBProfileFlags(GraphicsContextFlags flags) { ArbCreateContext result = 0; result |= (flags & GraphicsContextFlags.ForwardCompatible) != 0 ? ArbCreateContext.CoreProfileBit : ArbCreateContext.CompatibilityProfileBit; return(result); }
private static ArbCreateContext GetARBContextProfile(GraphicsContextFlags flags) { ArbCreateContext result = 0; // Interpret the ForwardCompatible flag as wanting the core profile. (Should make a separate flag to differentiate core profile vs forward compatible one?) result |= (flags & GraphicsContextFlags.ForwardCompatible) != 0 ? ArbCreateContext.CoreProfileBit : ArbCreateContext.CompatibilityProfileBit; return(result); }