Browse Source

LibGL: Add API stubs

- glBlendEquation
- glGetShaderInfoLog
- glGetUniformLocation
- glUniform*

This gives us full API coverage for the SRB2 port.
Jelle Raaijmakers 1 year ago
parent
commit
2a749525e0
1 changed files with 56 additions and 0 deletions
  1. 56 0
      Userland/Libraries/LibGL/GLAPI.json

+ 56 - 0
Userland/Libraries/LibGL/GLAPI.json

@@ -48,6 +48,12 @@
             {"type": "GLubyte const*", "name": "bitmap"}
         ]
     },
+    "BlendEquation": {
+        "arguments": [
+            {"type": "GLenum", "name": "mode"}
+        ],
+        "unimplemented": true
+    },
     "BlendFunc": {
         "arguments": [
             {"type": "GLenum", "name": ["sfactor", "dfactor"]}
@@ -468,6 +474,15 @@
         ],
         "implementation": "get_program"
     },
+    "GetShaderInfoLog": {
+        "arguments": [
+            {"type": "GLuint", "name": "shader"},
+            {"type": "GLsizei", "name": "maxLength"},
+            {"type": "GLsizei*", "name": "length"},
+            {"type": "GLchar*", "name": "infoLog"}
+        ],
+        "unimplemented": true
+    },
     "GetShaderiv": {
         "arguments": [
             {"type": "GLuint", "name": "shader"},
@@ -506,6 +521,13 @@
             }
         }
     },
+    "GetUniformLocation": {
+        "arguments": [
+            {"type": "GLuint", "name": "program"},
+            {"type": "GLchar const*", "name": "name"}
+        ],
+        "unimplemented": true
+    },
     "Hint": {
         "arguments": [
             {"type": "GLenum", "name": "target"},
@@ -1137,6 +1159,40 @@
             }
         }
     },
+    "Uniform": {
+        "arguments": [
+            {"type": "GLint", "name": "location"},
+            {"name": ["v0", "v1", "v2", "v3"]}
+        ],
+        "unimplemented": true,
+        "variants": {
+            "argument_counts": [1, 2, 3, 4],
+            "argument_defaults": ["0.", "0.", "0.", "0."],
+            "types": {
+                "f": {},
+                "i": {},
+                "ui": {}
+            }
+        }
+    },
+    "Uniform_v": {
+        "arguments": [
+            {"type": "GLint", "name": "location"},
+            {"type": "GLsizei", "name": "count"},
+            {"name": "value"}
+        ],
+        "name": "Uniform",
+        "unimplemented": true,
+        "variants": {
+            "argument_counts": [1, 2, 3, 4],
+            "pointer_argument": "value",
+            "types": {
+                "fv": {},
+                "iv": {},
+                "uiv": {}
+            }
+        }
+    },
     "UseProgram": {
         "arguments": [
             {"type": "GLuint", "name": "program"}