1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 10:47:36 +00:00

LibGL: Implement GL_TEXTURE_ENV_COLOR

This sets a constant color in the texture's environment for the fixed
function pipeline.
This commit is contained in:
Jelle Raaijmakers 2023-01-01 22:41:31 +01:00 committed by Andreas Kling
parent 9b50d74df2
commit 474f9e9c69
8 changed files with 79 additions and 10 deletions

View file

@ -978,18 +978,35 @@
"arguments": [
{"type": "GLenum", "name": "target"},
{"type": "GLenum", "name": "pname"},
{"name": "param", "cast_to": "GLfloat"}
{"name": "param"},
{"type": "GLenum", "expression": "@variant_gl_type@"}
],
"implementation": "tex_envv",
"variants": {
"argument_counts": [1],
"pointer_argument": "params",
"types": {
"f": {},
"fv": {"unimplemented": true},
"i": {},
"iv": {"unimplemented": true}
"fv": {},
"iv": {}
}
}
},
"TexEnvf": {
"arguments": [
{"type": "GLenum", "name": "target"},
{"type": "GLenum", "name": "pname"},
{"type": "GLfloat", "name": "x", "expression": "{@argument_name@, 0.f, 0.f, 0.f}"}
],
"implementation": "tex_env"
},
"TexEnvi": {
"arguments": [
{"type": "GLenum", "name": "target"},
{"type": "GLenum", "name": "pname"},
{"type": "GLint", "name": "x", "expression": "{static_cast<float>(@argument_name@), 0.f, 0.f, 0.f}"}
],
"implementation": "tex_env"
},
"TexGen": {
"arguments": [
{"type": "GLenum", "name": "coord"},