Exemple #1
0
        private static ArbCreateContext GetARBContextFlags(GraphicsContextFlags flags)
        {
            ArbCreateContext result = 0;

            result |= (flags & GraphicsContextFlags.Debug) != 0 ? ArbCreateContext.DebugBit : 0;
            return(result);
        }
Exemple #2
0
        private static ArbCreateContext GetARBProfileFlags(GraphicsContextFlags flags)
        {
            ArbCreateContext result = 0;

            result |= (flags & GraphicsContextFlags.ForwardCompatible) != 0 ?
                      ArbCreateContext.CoreProfileBit : ArbCreateContext.CompatibilityProfileBit;
            return(result);
        }
Exemple #3
0
        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);
        }