/// <summary>
        /// <para>Returns an NSOpenGLPixelFormat object initialized with specified pixel format attributes.</para>
        /// <para>Original signature is '- (id)initWithAttributes:(const NSOpenGLPixelFormatAttribute *)attribs'</para>
        /// <para>Available in Mac OS X v10.0 and later.</para>
        /// </summary>

        public NSOpenGLPixelFormat(Object[] attribs) : this(attribs.Select(Convert.ToUInt32).ToArray())
        {
        }
Example #2
0
 public LogWriter Write(Logger logger, Level level, String format, Object[] args)
 {
     // todo. this will mess up custom format specifiers!
     RawWrite(logger, level, String.Format(format, args.Select(a => a.ToLog()).ToArray()));
     return this;
 }
 /// <summary>
 ///   <para>Sets the value of the specified parameter.</para>
 ///   <para>Original signature is '- (void)setValues:(const GLint *)vals forParameter:(NSOpenGLContextParameter)param'</para>
 ///   <para>Available in Mac OS X v10.0 and later.</para>
 /// </summary>
 /// <param name = "vals">The new value (or values) for the parameter.</param>
 /// <param name = "param">The parameter you want to modify. For a list of parameters, see NSOpenGLContextParameter.</param>
 public virtual void SetValuesForParameter(Object[] vals, NSOpenGLContextParameter param)
 {
     int[] values = vals.Select(Convert.ToInt32).ToArray();
     this.SetValuesForParameter(values, param);
 }