mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibGL: Combine glLightModel definitions
Create a single definition with two variants for `glLightModeli` and `glLightModelf`.
This commit is contained in:
1 parent
60bd458ed2
commit
e18bc2a748
1 file changed
+16
-16
@@ -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"}
|
||||
|
||||
Reference in new issue
Block a user