mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
LibGL: Combine glLightModel definitions
Create a single definition with two variants for `glLightModeli` and `glLightModelf`.
This commit is contained in:
parent
60bd458ed2
commit
e18bc2a748
1 changed files with 16 additions and 16 deletions
|
@ -551,12 +551,28 @@
|
||||||
"implementation": "lightf"
|
"implementation": "lightf"
|
||||||
},
|
},
|
||||||
"LightModel": {
|
"LightModel": {
|
||||||
|
"arguments": [
|
||||||
|
{"type": "GLenum", "name": "pname"},
|
||||||
|
{"name": "param"},
|
||||||
|
{"name": ["y", "z", "w"]}
|
||||||
|
],
|
||||||
|
"variants": {
|
||||||
|
"argument_counts": [1],
|
||||||
|
"argument_defaults": ["0.f", "0.f", "0.f", "0.f"],
|
||||||
|
"types": {
|
||||||
|
"f": {},
|
||||||
|
"i": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"LightModel_v": {
|
||||||
"arguments": [
|
"arguments": [
|
||||||
{"type": "GLenum", "name": "pname"},
|
{"type": "GLenum", "name": "pname"},
|
||||||
{"name": "param"},
|
{"name": "param"},
|
||||||
{"type": "GLenum", "expression": "@variant_gl_type@"}
|
{"type": "GLenum", "expression": "@variant_gl_type@"}
|
||||||
],
|
],
|
||||||
"implementation": "light_modelv",
|
"implementation": "light_modelv",
|
||||||
|
"name": "LightModel",
|
||||||
"variants": {
|
"variants": {
|
||||||
"argument_counts": [1],
|
"argument_counts": [1],
|
||||||
"pointer_argument": "params",
|
"pointer_argument": "params",
|
||||||
|
@ -566,22 +582,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"LightModelf": {
|
|
||||||
"arguments": [
|
|
||||||
{"type": "GLenum", "name": "pname"},
|
|
||||||
{"type": "GLfloat", "name": "x"},
|
|
||||||
{"name": ["y", "z", "w"], "expression": "0.f"}
|
|
||||||
],
|
|
||||||
"implementation": "light_model"
|
|
||||||
},
|
|
||||||
"LightModeli": {
|
|
||||||
"arguments": [
|
|
||||||
{"type": "GLenum", "name": "pname"},
|
|
||||||
{"type": "GLint", "name": "x", "cast_to": "GLfloat"},
|
|
||||||
{"name": ["y", "z", "w"], "expression": "0.f"}
|
|
||||||
],
|
|
||||||
"implementation": "light_model"
|
|
||||||
},
|
|
||||||
"LineWidth": {
|
"LineWidth": {
|
||||||
"arguments": [
|
"arguments": [
|
||||||
{"type": "GLfloat", "name": "width"}
|
{"type": "GLfloat", "name": "width"}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue