<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <canvas id = "canvas"> </canvas> <script> var canvas = document.getElementById('canvas'); var gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); var extensions = gl.getSupportedExtensions(); for(var e in extensions){ document.write(extensions[e] + ","); } </script> </body> </html>
こんな感じで,gl.getSupportedExtensions()を呼び出せば,拡張機能の一覧が取得できる.
0 件のコメント:
コメントを投稿