diff --git a/lib/x11/ext/glxconstants.js b/lib/x11/ext/glxconstants.js index 0e1698c..8fc3027 100644 --- a/lib/x11/ext/glxconstants.js +++ b/lib/x11/ext/glxconstants.js @@ -9,6 +9,9 @@ module.exports = { DEPTH_TEST: 0x0B71, NORMALIZE: 0x0BA1, + BLEND: 0x0BE2, + POLYGON_SMOOTH: 0x0B41, + // glShadeModel FLAT: 0x1D00, SMOOTH: 0x1D01, @@ -43,6 +46,10 @@ module.exports = { COMPILE: 0x1300, + // Hint + POLYGON_SMOOTH_HINT: 0x0C53, + NICEST: 0x1102, + // glGetString RENDERER: 0x1F01, VERSION: 0x1F02, diff --git a/lib/x11/ext/glxrender.js b/lib/x11/ext/glxrender.js index 8d6b033..e8438f6 100644 --- a/lib/x11/ext/glxrender.js +++ b/lib/x11/ext/glxrender.js @@ -52,6 +52,12 @@ module.exports = function(GLX) { buffers.push(res); }; + function serialize2i(opcode, value1, value2) { + var res = commandBuffer(opcode, 12); + res.writeUInt32LE(value1, 4); + res.writeUInt32LE(value2, 8); + buffers.push(res); + } function serialize1i(opcode, value) { var res = commandBuffer(opcode, 8); @@ -127,6 +133,8 @@ module.exports = function(GLX) { ShadeModel: function(model) { serialize1i(104, model); }, - + Hint: function(target, mode) { + serialize2i(85, target, mode); + } }; }