LibGL: Combine glLightModel definitions
Create a single definition with two variants for `glLightModeli` and `glLightModelf`.
This commit is contained in:
parent
60bd458ed2
commit
e18bc2a748
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/e18bc2a748 Pull-request: https://github.com/SerenityOS/serenity/pull/23180
1 changed files with 16 additions and 16 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Reference in a new issue