/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/html/test_webgl_context_get_parameter.html
12 строк
447 B
ecoal95
WebGLRenderingContext getters and `getParameter`
01 июн 2015, 17:34
01 июн 2015, 17:34
eff2bb4
Код
Авторство
О чём код?
<!doctype html> <meta charset="utf-8"> <title>WebGLRenderingContext getParameter test</title> <script> var gl = document.createElement("canvas").getContext("webgl"); if ( typeof gl.getParameter !== "function" ) console.error("getParameter should be a function"); if ( gl.getParameter(gl.VERSION).indexOf("WebGL 1.0") !== 0 ) console.error("getParameter(VERSION) should return a string beginning with \"WebGL 1.0\""); </script>