LibGL: Combine glLightModel definitions

Create a single definition with two variants for `glLightModeli` and
`glLightModelf`.
This commit is contained in:
Jelle Raaijmakers 2024-02-13 02:06:12 +01:00
parent 60bd458ed2
commit e18bc2a748
Notes: sideshowbarker 2024-07-17 05:03:11 +09:00

View file

@ -551,12 +551,28 @@
"implementation": "lightf"
},
"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": [
{"type": "GLenum", "name": "pname"},
{"name": "param"},
{"type": "GLenum", "expression": "@variant_gl_type@"}
],
"implementation": "light_modelv",
"name": "LightModel",
"variants": {
"argument_counts": [1],
"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": {
"arguments": [
{"type": "GLfloat", "name": "width"}