Die WebGLRenderingContext.getActiveAttrib()
Methode der WebGL API gibt ein WebGLActiveInfo
Objekt zurück, welches die Größe, den Typ und den Namen eines Vertex-Attributes an der gegebenen Position in einem WebGLProgram
enthält.
Syntax
WebGLActiveInfo gl.getActiveAttrib(program,index);
Parameter
- program
- Ein
WebGLProgram
, welches das Vertex-Attribut enthält - index
- Ein
GLuint
, welcher den Index des Vertex-Attributes angibt
Rückgabewert
Ein WebGLActiveInfo
Objekt.
Beispiele
gl.getActiveAttrib(program, i);
Spezifikationen
Spezifikation | Status | Kommentar |
---|---|---|
WebGL 1.0 Die Definition von 'getActiveAttrib' in dieser Spezifikation. |
Empfehlung | Erstmalige Definition |
OpenGL ES 2.0 Die Definition von 'glGetActiveAttrib' in dieser Spezifikation. |
Standard | Man page der OpenGL API |
Browser-Kompatibilität
Wir konvertieren die Kompatibilitätsdaten in ein maschinenlesbares JSON Format.
Diese Kompatibilitätstabelle liegt noch im alten Format vor,
denn die darin enthaltenen Daten wurden noch nicht konvertiert.
Finde heraus wie du helfen kannst!
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 9 | 12 | 4.0 (2.0) | 11 | 12 | 5.1 |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Basic support | ? | 25 | 4.0 (2.0) | 1.0 | ? | 12 | 8.0 |