// render opcode 18 - reference glyph set /** * @see <a href="XRenderReferenceGlyphSet.html"> * XRenderReferenceGlyphSet</a> */ public GlyphSet(GlyphSet src) : base(src.display) { render = src.render; Request request = new Request (display, render.major_opcode, 18, 3); request.write4 (id); request.write4 (src.id); display.send_request (request); }
// render opcode 17 - create glyph set /** * @see <a href="XRenderCreateGlyphSet.html">XRenderCreateGlyphSet</a> */ public GlyphSet(Render render, Picture.Format format) : base(render.display) { this.render = render; Request request = new Request (display, render.major_opcode, 17, 3); request.write4 (id); request.write4 (format.id ()); display.send_request (request); }
//throws gnu.x11.extension.NotFoundException { public Blend(String [] args) : base(args, 255, 255) { about ("0.1", "test blending in RENDER", "Stephen Tse <*****@*****.**>", "http://escher.sourceforge.net/"); if (help_option) return; render = new Render (display); Picture.Format pf0 = new Picture.Format (), pf1; Picture.Format.Direct df = pf0.direct_format (); alpha_pixmap = new Pixmap (window, window.width, window.height, 8); color_pixmap = new Pixmap (window, 1, 1, 24); alpha_gc = new GC (alpha_pixmap); color_gc = new GC (color_pixmap); // window picture (TODO: find visual) pf0.clear (); pf0.set_depth (display.default_screen.root_depth ()); pf1 = render.picture_format (pf0, true); window_picture = render.create_picture (window, pf1, Picture.Attributes.EMPTY); // alpha picture pf0.clear (); pf0.set_depth (8); pf0.set_type (Picture.Format.Direct.TYPE); df.set_alpha (0); df.set_alpha_mask (0xff); pf1 = render.picture_format (pf0, true); alpha_picture = render.create_picture (alpha_pixmap, pf1, Picture.Attributes.EMPTY); // color picture pf0.clear (); pf0.set_depth (24); pf0.set_type (Picture.Format.Direct.TYPE); df.set_alpha (0); df.set_alpha_mask (0); df.set_red (16); df.set_red_mask (0xff); df.set_green (8); df.set_green_mask (0xff); df.set_blue (0); df.set_blue_mask (0xff); pf1 = render.picture_format (pf0, true); Picture.Attributes attr = new Picture.Attributes (); attr.set_repeat (true); color_picture = render.create_picture (color_pixmap, pf1, attr); }
// render opcode 4 - create picture /** * @see <a href="XRenderCreatePicture.html">XRenderCreatePicture</a> * @see Render#create_picture(Drawable, Picture.Format, * Picture.Attributes) */ public Picture(Render render, Drawable drawable, Format format, Attributes attr) : base(render.display) { this.render = render; Request request = new Request (display, render.major_opcode, 4, 5+attr.count ()); request.write4 (id); request.write4 (drawable.id); request.write4 (format.id ()); request.write4 (attr.bitmask); attr.write (request); display.send_request (request); }
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"); } }