GithubHelp home page GithubHelp logo

coyotey / iewebgl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iewebgl/iewebgl

0.0 2.0 0.0 110.37 MB

WebGL plugin for Internet Explorer 10 and below.

Shell 0.02% Python 0.10% C 38.21% C++ 49.48% Objective-C 0.57% Lex 0.15% Yacc 0.64% PostScript 0.01% Batchfile 0.01% Inno Setup 0.02% JavaScript 9.03% HTML 0.76% CSS 0.18% ASP 0.64% C# 0.17% ApacheConf 0.01%

iewebgl's Introduction

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

iewebgl's People

Contributors

iewebgl avatar

Watchers

James Cloos avatar coyotey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.