mirror of
https://github.com/danbulant/node-x11
synced 2026-07-05 11:10:58 +00:00
glHint
This commit is contained in:
parent
e712fdb0a5
commit
a5087c35c6
2 changed files with 16 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ module.exports = {
|
||||||
DEPTH_TEST: 0x0B71,
|
DEPTH_TEST: 0x0B71,
|
||||||
NORMALIZE: 0x0BA1,
|
NORMALIZE: 0x0BA1,
|
||||||
|
|
||||||
|
BLEND: 0x0BE2,
|
||||||
|
POLYGON_SMOOTH: 0x0B41,
|
||||||
|
|
||||||
// glShadeModel
|
// glShadeModel
|
||||||
FLAT: 0x1D00,
|
FLAT: 0x1D00,
|
||||||
SMOOTH: 0x1D01,
|
SMOOTH: 0x1D01,
|
||||||
|
|
@ -43,6 +46,10 @@ module.exports = {
|
||||||
|
|
||||||
COMPILE: 0x1300,
|
COMPILE: 0x1300,
|
||||||
|
|
||||||
|
// Hint
|
||||||
|
POLYGON_SMOOTH_HINT: 0x0C53,
|
||||||
|
NICEST: 0x1102,
|
||||||
|
|
||||||
// glGetString
|
// glGetString
|
||||||
RENDERER: 0x1F01,
|
RENDERER: 0x1F01,
|
||||||
VERSION: 0x1F02,
|
VERSION: 0x1F02,
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,12 @@ module.exports = function(GLX) {
|
||||||
buffers.push(res);
|
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) {
|
function serialize1i(opcode, value) {
|
||||||
var res = commandBuffer(opcode, 8);
|
var res = commandBuffer(opcode, 8);
|
||||||
|
|
@ -127,6 +133,8 @@ module.exports = function(GLX) {
|
||||||
ShadeModel: function(model) {
|
ShadeModel: function(model) {
|
||||||
serialize1i(104, model);
|
serialize1i(104, model);
|
||||||
},
|
},
|
||||||
|
Hint: function(target, mode) {
|
||||||
|
serialize2i(85, target, mode);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue