// glx opcode 5 - create glx pixmap /** * @see <a href="glXCreateGLXPixmap.html">glXCreateGLXPixmap</a> */ public Pixmap(GLX glx, int screen_no, gnu.x11.Visual visual, gnu.x11.Pixmap pixmap) : base(glx.display) { Request request = new Request (display, glx.major_opcode, 5, 5); request.write4 (screen_no); request.write4 (visual.id ()); request.write4 (pixmap.id); request.write4 (id); display.send_request (request); }
// glx opcode 5 - create glx pixmap /** * @see <a href="glXCreateGLXPixmap.html">glXCreateGLXPixmap</a> */ public Pixmap(GLX glx, int screen_no, gnu.x11.Visual visual, gnu.x11.Pixmap pixmap) : base(glx.display) { Request request = new Request(display, glx.major_opcode, 5, 5); request.write4(screen_no); request.write4(visual.id()); request.write4(pixmap.id); request.write4(id); display.send_request(request); }
protected Application(String [] args, int event_mask) : base(args) { this.event_mask = event_mask; if (help_option) return; visual_config = new VisualConfig (); try { glx = new GLX (display); } catch (gnu.x11.extension.NotFoundException e) { throw new gnu.x11.Error ("Failed to initialize: " + e); } }
protected Application(String [] args, int event_mask) : base(args) { this.event_mask = event_mask; if (help_option) { return; } visual_config = new VisualConfig(); try { glx = new GLX(display); } catch (gnu.x11.extension.NotFoundException e) { throw new gnu.x11.Error("Failed to initialize: " + e); } }
public void extension_details() { Console.WriteLine ("\n\n---- extension details"); try { Console.WriteLine (new gnu.x11.extension. BigRequests (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("big requests not found\n"); } try { Console.WriteLine (new gnu.x11.extension.DBE (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("dbe not found\n"); } try { Console.WriteLine (new gnu.x11.extension.DPMS (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("dpms not found\n"); } try { Console.WriteLine (new gnu.x11.extension.EVI (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("evi not found\n"); } try { GLX glx = new GLX (display); Console.WriteLine (glx + Misc.to_string (glx.visual_configs (0))); GL gl = glx.create_context (display.default_screen.root_visual_id (), display.default_screen_no, GL.NONE0); gl.make_current (display.default_root); Console.WriteLine (gl + "\n"); } catch (NotFoundException e) { Console.WriteLine ("glx not found\n"); } try { Render render = new Render (display); Console.WriteLine (render + Misc.to_string (render.picture_formats ())); } catch (NotFoundException e) { Console.WriteLine ("render not found\n"); } try { Console.WriteLine (new gnu.x11.extension.Shape (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("shape not found\n"); } try { Console.WriteLine (new gnu.x11.extension.XCMisc (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("xcmic not found\n"); } try { Console.WriteLine (new gnu.x11.extension.XTest (display) + "\n"); } catch (NotFoundException e) { Console.WriteLine ("xtest not found\n"); } }
// glx opcode 3 - create context /** * @see <a href="glXCreateContext.html">glXCreateContext</a> */ public GL(GLX glx, int visual_id, int screen_no, GL share_list) : base(glx.display) { this.glx = glx; Request request = begin_command_request (3, 6); request.write4 (id); request.write4 (visual_id); request.write4 (screen_no); request.write4 (share_list.id); request.write1 (false); // is_direct display.send_request (request); }