All Projects → iewebgl → iewebgl

iewebgl / iewebgl

Licence: other
WebGL plugin for Internet Explorer 10 and below.

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
Classic ASP
548 projects
C#
18002 projects

IEWebGL

WebGL plugin for Internet Explorer 10 and below.

IEWebGL is a plugin for Microsoft Internet Explorer web browser, that adds support for WebGL - modern web 3D graphics standard.

Build

  • install InnoSetup
  • clone, build using Microsoft Visual Studio 2012 using *.sln file under /Src directory.
  • run makesetup.cmd
  • use iewebgl.exe under /Bin directory

Usage

When your page runs under IE 10 or below you use IEWebGL plugin the following way:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
    function InitWebGLContext() {
        var glCanvas = document.getElementById("glCanvas");
        // first, try standard WebGL context
        var gl = glCanvas.getContext("webgl");
        if (!gl) {
            // if failed, try experimental one
            gl = glCanvas.getContext("experimental-webgl");
        }
 
        if (!gl) {
            alert("Your browser does not support WebGL");
            return;
        }
 
        // here we get WebGL context - 
        // for demonstation let's show some info
        alert(
            "WebGL version=" + gl.getParameter(gl.VERSION) + "\n" +
            "WebGL vendor=" + gl.getParameter(gl.VENDOR) + "\n" +
            "WebGL renderer=" + gl.getParameter(gl.RENDERER) + "\n"
        );
    }
</script>
</head>
 
<body onload="InitWebGLContext()">
<object style="width:100%;height:100%" id="glCanvas"
type="application/x-webgl"></object>
</body>
 
</html>

For more detailed info, visit http://iewebgl.com or read /WebSite2.0/Samples

Creators

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].