//throws NotFoundException { // xc-misc opcode 0 - get version public XCMisc(gnu.x11.Display display) : base(display, "XC-MISC", MINOR_OPCODE_STRINGS) { // check version before any other operations Request request = new Request (display, major_opcode, 0, 2); request.write2 (CLIENT_MAJOR_VERSION); request.write2 (CLIENT_MINOR_VERSION); Data reply = display.read_reply (request); server_major_version = reply.read2 (8); server_minor_version = reply.read2 (10); }
//throws NotFoundException { // dbe opcode 0 - get version public DBE(gnu.x11.Display display) : base(display, "DOUBLE-BUFFER", MINOR_OPCODE_STRINGS, 1, 0) { // check version before any other operations Request request = new Request (display, major_opcode, 0, 2); request.write1 (CLIENT_MAJOR_VERSION); request.write1 (CLIENT_MINOR_VERSION); Data reply = display.read_reply (request); server_major_version = reply.read1 (8); server_minor_version = reply.read1 (9); }
//throws gnu.x11.extension.NotFoundException { // glx opcode 7 - get version /** * @see <a href="glXQueryVersion.html">glXQueryVersion</a> */ public GLX(gnu.x11.Display display) : base(display, "GLX", MINOR_OPCODE_STRINGS, 13, 1) { // check version before any other operations Request request = new Request (display, major_opcode, 7, 3); request.write4 (CLIENT_MAJOR_VERSION); request.write4 (CLIENT_MINOR_VERSION); Data reply = display.read_reply (request); server_major_version = reply.read4 (8); server_minor_version = reply.read4 (12); send_client_info (); visual_configs_cache = new VisualConfig [display.screens.Length] []; }