{"_id":"gl-now","_rev":"44-7968e4fc82cb30dc839c2688e65a72a1","name":"gl-now","dist-tags":{"latest":"1.4.0"},"versions":{"0.0.0":{"name":"gl-now","version":"0.0.0","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@0.0.0","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"666581cd53810ec7fb62989b194a128ad9fc1afa","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-0.0.0.tgz","integrity":"sha512-hN+BUGZcqB8/UaK7k7nJaYZovyMrbQ6B/69oxPwt6GFwuQbPI7ug5E2oJou43qRSwJVnnj2k+WBOsAIKav4DdQ==","signatures":[{"sig":"MEUCIQDvg6HrOr7aCpLBo9ewoayWVchnDpJSxyTTzs5WHQWe2QIgPQLWEQ31m3fBVb6o8nDQzLBbzcDm2U9NYAe1KokeaGM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.2.24","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"color":"~0.4.4","game-shell":"~0.0.5"},"devDependencies":{}},"0.0.1":{"name":"gl-now","version":"0.0.1","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@0.0.1","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"52862b8d2102c623992d6f1655f08692034f9bc5","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-0.0.1.tgz","integrity":"sha512-2lHrbcaFvuyKMnZ2GNTYYmPypZFtd1dUIVuYOjyIdNz6CtlRShnVbPQ52TN++1knuiLTD5kRfTIRbU22bi3yGA==","signatures":[{"sig":"MEUCIQDhzJKpepkKEH2/KXw2FySluTvTvGT6+W8hqWswnQWusgIgQ+s4uCITrCHVFf2A8U0j00oCSbLO4QI8KyTRLM7sFh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.2.24","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"color":"~0.4.4","game-shell":"~0.0.5"},"devDependencies":{}},"0.0.2":{"name":"gl-now","version":"0.0.2","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@0.0.2","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"be60784065bc7bf78fc75712e4c9af4e4bb514cf","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-0.0.2.tgz","integrity":"sha512-wU9bS7KV7B/NUsMl4QoGg1qPQTdkRxqO8XSayOlZbA/T/ERG6aXqsVT607BC5Plmt7yUVtM7HW8FVztUtcqcrw==","signatures":[{"sig":"MEYCIQDxZR5dPs6DdcE2g9syy6IYHnir8dHKEoIxnhaRdxsggQIhANyORgLhWSdE4Wbh3C6pdLUZHW1iTLUteByuD+2cTZsw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.2.24","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"game-shell":"~0.0.5"},"devDependencies":{}},"0.0.3":{"name":"gl-now","version":"0.0.3","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@0.0.3","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"1c8faf303ae0e0b477ef5becca95aeac945eb6e1","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-0.0.3.tgz","integrity":"sha512-aYkvioR//LaLCcetA0TyzSdDwv6JiLCVPvN0mMKQUh1sQsdFlTzbrUX43UluzoBtHFbE78XxowIeFo+ThQLkTg==","signatures":[{"sig":"MEUCIBQvyHeQXZDnWcsXNko0yETTb1xe46fvna4g+fxpdbhDAiEAgl3YiYPA67Ovv4U661hAOxkJ9k4V/h6FsXHVSwPMWh8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.2.24","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"game-shell":"~0.1.0"},"devDependencies":{}},"0.0.4":{"name":"gl-now","version":"0.0.4","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@0.0.4","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"30378808b11471c26940b1bd0d7649475f703805","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-0.0.4.tgz","integrity":"sha512-HNf/pK568ula20p/Hd+cl0i6ESdxteVTyPEHR5G1JDPnLOSN2STxhBvezXA/SEgUrwvjhz1chO3RguUwJL7yFQ==","signatures":[{"sig":"MEQCIFi6R6QCYpgwhiNPZ9o+ql+KDhPnTx6lM3wGjij1XzmfAiBYd1GTz1oFcj4I7jH9TOTIo4iRF1t0XFoOFpoENo8nTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.2.24","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"~0.0.0","game-shell":"~0.1.3"},"devDependencies":{}},"1.0.0":{"name":"gl-now","version":"1.0.0","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.0.0","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"47c2307c675feded4bcccfa31be686276a43b445","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.0.0.tgz","integrity":"sha512-vUnJ6XONSeLDE5aUb4x7ldKkCbNZy8b6XEaIZ74vJGLum2X+dtDf+gFRlV3YtsNAjFvlGBGUNyasUi4jiNlqNw==","signatures":[{"sig":"MEUCIC6yiYWOAl2in+WBm+k/AAawPOoyMAGqv0ID+RAckkMhAiEA9MvwIa8NLZM80k4Y46QQfYr7FE0ivBXqKJbALZJHlck=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.3.14","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"~0.0.0","game-shell":"~1.0.0"},"devDependencies":{}},"1.0.1":{"name":"gl-now","version":"1.0.1","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.0.1","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"2e10a581118a3bd40fc12413b511e7c074cf640d","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.0.1.tgz","integrity":"sha512-eYdL6K8sJf5tI0XJk1Xh4G/YIjOn7wuR4kOe2kl8PuM206PIMn6EdYDNi69g/oU/BVHGMHUYLTt1obQba00Rsw==","signatures":[{"sig":"MEUCIEFhR3lGdQe9QKs97Yw4oWbFYj1la6J6dPmJAfsZP7QqAiEAqtPCD7qWsxatT7GFkFOBXW+BR00FckxamgjrVP+ztgA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"~1.0.0"},"devDependencies":{}},"1.0.2":{"name":"gl-now","version":"1.0.2","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.0.2","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"de3db82fc88e0f3f455a0761d26af5945f1f2193","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.0.2.tgz","integrity":"sha512-AHBsGdZ9bkYoS1F4PEGfzyXAbPKEWDc4gmL4tAlbQJ9rxJPNO18PXGoVRjAXSP7OMO7hPZ1D1okJDnjzAYguNw==","signatures":[{"sig":"MEQCIC6bu/anZrgOkIdHMGMXVeTbTLvkDveXJNEmFeZA5xysAiBqd+qWt5zClhBqqSqPdeXEXG48mvgoE8Xy8sBKtq0byg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"^1.0.0"},"devDependencies":{}},"1.1.0":{"name":"gl-now","version":"1.1.0","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.1.0","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"02c26004a3f2135e5ab33cdd02b64bff377f0375","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.1.0.tgz","integrity":"sha512-CKerHsFLZhPJzsd3mVwhGZQs2A1VLFSs3XBTJ4aGgUDk/6qp0DcP2V2jlZxKlREBXW0WaFUvFskvvIiOTYuPHA==","signatures":[{"sig":"MEUCIQDvY7dBxD3QASmykGgWfpLOSqET7hiJYj9stTQOkcrdQQIgWJhp8xMYj7k3A3hEV+luY1DiMYzle4/8BKrpjZqyKPM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"^1.0.0"},"devDependencies":{}},"1.2.0":{"name":"gl-now","version":"1.2.0","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.2.0","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"d7078ed0b55d0e02e8b1f5a474dd6c92d911f276","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.2.0.tgz","integrity":"sha512-hnK8pfbkAiWMIDKarPsEy43jsEOZrHvA92LO81ClJKVVHBHcq/cRSUNGprZhFfr8+EpU5yOTaUTEIMHsvYK5WQ==","signatures":[{"sig":"MEUCIQD4kkuYYAeXBK9avRsRs6BHaSb46o2PvBrauw9H55jpfgIge40EO0iN4zuvvVJPZMx5nAOR2xmmBiqbrgr9pBxq8dM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"^1.0.0"},"devDependencies":{}},"1.3.0":{"name":"gl-now","version":"1.3.0","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.3.0","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"370a1d34cbaffecaffdade562f68bf5c08b17709","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.3.0.tgz","integrity":"sha512-90voBW/4OG42qNxjsntpbv942mleMLX1nc4arv+PpWJLpzKTJDtPEIYL/+uCQYwf+o+ZteOAP+eR0J6ZcbaaDw==","signatures":[{"sig":"MEUCICTD0KbZSa6PIEvJIZXrbKERP3+JCApJgHDnSO6zlvW2AiEAgYySk5QQU++FolV2Gye2S9o0XR3+eA9WI85sMjgxY9Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"^1.0.0"},"devDependencies":{}},"1.3.1":{"name":"gl-now","version":"1.3.1","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.3.1","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"1732b782512ee8f8443c3f37a428f23a3e180e2c","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.3.1.tgz","integrity":"sha512-ylKUhCnmxfy8Urg6PO6HStTK//u5MCOS/ixUk7kFs0OB6B02Lcn4PhDuJzmJCZOB1Gya5c5Zd9GhkaccyM2RFQ==","signatures":[{"sig":"MEUCICeK/YgJmbz3/sE6EX1mvYYh05i3FVllG+dyttJlQ8K9AiEAgc5gMcEysIRJGoBpPGaJGYvr+SgGrLfdi6BfxrBZifs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"^1.0.0"},"devDependencies":{}},"1.4.0":{"name":"gl-now","version":"1.4.0","keywords":["webgl","create","shell","game"],"author":{"name":"Mikola Lysenko"},"license":"MIT","_id":"gl-now@1.4.0","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/mikolalysenko/gl-now","bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"dist":{"shasum":"28ac356a198bbaa11478a1a3b9e036e55e4fd080","tarball":"https://registry.npmjs.org/gl-now/-/gl-now-1.4.0.tgz","integrity":"sha512-XOniTLVT2QJGNh7t6c/DEO3bUrENmuS7mK1gQ2izLRljF9kF9/m2FC4mFtTXojWNMPt7XCjhQCCYB9biSTT6jA==","signatures":[{"sig":"MEQCIEsyp3ZrQ90x0YRzAXUkTVqB75M0TvdpD/1prFc2kBSHAiAfbWwZuOdZjU7V2EmjQ7ZWOkJeC4Vk2ixM3YkAPd2dpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","gitHead":"51f897e6ef26c85d1278248a28eab1f715b160de","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"_npmVersion":"1.4.3","description":"Create a WebGL context now!","directories":{"example":"example"},"dependencies":{"webglew":"^1.0.0","game-shell":"^1.0.0"},"devDependencies":{}}},"time":{"created":"2013-06-12T03:06:04.971Z","modified":"2024-12-29T00:46:44.498Z","0.0.0":"2013-06-12T03:06:06.210Z","0.0.1":"2013-06-27T20:45:27.900Z","0.0.2":"2013-06-28T16:05:00.612Z","0.0.3":"2013-07-06T06:18:50.324Z","0.0.4":"2013-07-09T02:24:47.617Z","1.0.0":"2014-02-13T07:05:59.223Z","1.0.1":"2014-03-27T17:13:12.293Z","1.0.2":"2014-04-05T22:39:02.321Z","1.1.0":"2014-04-06T02:29:21.750Z","1.2.0":"2014-04-06T02:35:16.957Z","1.3.0":"2014-04-07T23:00:46.911Z","1.3.1":"2014-04-11T15:53:53.627Z","1.4.0":"2014-08-29T15:04:54.143Z"},"bugs":{"url":"https://github.com/mikolalysenko/gl-now/issues"},"author":{"name":"Mikola Lysenko"},"license":"MIT","homepage":"https://github.com/mikolalysenko/gl-now","keywords":["webgl","create","shell","game"],"repository":{"url":"git://github.com/mikolalysenko/gl-now.git","type":"git"},"description":"Create a WebGL context now!","maintainers":[{"email":"mikolalysenko@gmail.com","name":"mikolalysenko"},{"email":"wwwtyro@gmail.com","name":"wwwtyro"},{"email":"thibaut.seguy@gmail.com","name":"thibauts"},{"email":"me@mikkoh.com","name":"mikkoh"},{"email":"javascript@yosh.is","name":"yoshuawuyts"},{"email":"dave.des@gmail.com","name":"mattdesl"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"chris@neversaw.us","name":"chrisdickinson"},{"email":"tatum.creative@gmail.com","name":"tatumcreative"}],"readme":"gl-now\n======\nCreate a WebGL context right now!\n\nThis module is an extension of [game-shell](https://github.com/mikolalysenko/game-shell) that creates a WebGL enabled canvas and adds it to the specified container.\n\n## Example\n\n[Try this demo in your browser](http://mikolalysenko.github.io/gl-now/)\n\n```javascript\n//Initialize shell\nvar shell = require(\"gl-now\")()\n\nshell.on(\"gl-init\", function() {\n  var gl = shell.gl\n  \n  //Create fragment shader\n  var fs = gl.createShader(gl.FRAGMENT_SHADER)\n  gl.shaderSource(fs, [\n    \"void main() {\",\n      \"gl_FragColor = vec4(1, 0, 0, 1);\",\n    \"}\"].join(\"\\n\"))\n  gl.compileShader(fs)\n\n  //Create vertex shader\n  var vs = gl.createShader(gl.VERTEX_SHADER)\n  gl.shaderSource(vs, [\n    \"attribute vec3 position;\",\n    \"void main() {\",\n      \"gl_Position = vec4(position, 1.0);\",\n    \"}\"].join(\"\\n\"))\n  gl.compileShader(vs)\n\n  //Link\n  var shader = gl.createProgram()\n  gl.attachShader(shader, fs)\n  gl.attachShader(shader, vs)\n  gl.linkProgram(shader)\n  gl.useProgram(shader)\n  \n  //Create buffer\n  gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer())\n  gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([\n    -1, 0, 0,\n    0, -1, 0,\n    1, 1, 0\n  ]), gl.STATIC_DRAW)\n  \n  //Set up attribute pointer\n  var position_attribute = gl.getAttribLocation(shader, \"position\")\n  gl.enableVertexAttribArray(position_attribute)\n  gl.vertexAttribPointer(position_attribute, 3, gl.FLOAT, false, 0, 0)\n})\n\nshell.on(\"gl-render\", function(t) {\n  var gl = shell.gl\n\n  //Draw arrays\n  gl.drawArrays(gl.TRIANGLES, 0, 3)\n})\n\nshell.on(\"gl-error\", function(e) {\n  throw new Error(\"WebGL not supported :(\")\n})\n```\n\nResult:\n\n<img src=\"https://raw.github.com/mikolalysenko/gl-now/master/screenshot.png\">\n\n\n## Install\n\n    npm install gl-now\n    \n# API\n\n### `var shell = require(\"gl-now\")([options])`\n\nOptions is an object that takes the same fields as in [game-shell](https://github.com/mikolalysenko/game-shell#var-shell--requiregame-shelloptions) with the following additions:\n\n* `clearFlags` a list of flags to clear on redraw.  (Default `gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT`)\n* `clearColor` a length 4 array representing background clear color.  (Defaults to element's background-color or else `[0.2, 0.4, 0.8, 1.0]`\n* `clearDepth` value to clear depth buffer to (Defaults to `1.0`)\n* `clearStencil` value to clear stencil buffer to (Defaults to `0`)\n* `extensions` a list of necessary WebGL extensions to support.  Vendor prefix optional.  You can access these extensions later using [webglew](https://npmjs.org/package/webglew)\n* `glOptions` on object containing a set of parameters which are passed to the webgl context directly.\n\n## Events\n\nIn addition to all the events inherited from [game-shell](https://github.com/mikolalysenko/game-shell#events), `gl-now` adds the following events:\n\n### `gl-init`\nCalled once the WebGL context is initialized\n\n### `gl-render([frame_time])`\nCalled at the start of the WebGL frame.\n\n### `gl-error(reason)`\nCalled if there was an error initializing webgl\n\n### `gl-resize(width, height)`\nCalled when the WebGL window is resized\n\n\n## Properties\n\nFinally `gl-now` adds the following extra properties to `game-shell`:\n\n### `shell.gl`\n\nThe WebGL context\n\n### `shell.canvas`\n\nThe canvas object\n\n### `shell.width`\n\nThe width of the gl context\n\n### `shell.height`\n\nThe height of the context\n\n### `shell.scale`\n\nThe scale of the context, which defaults to 1. Set it to higher values for\na smaller viewport and faster rendering at the expense of quality.\n\n### `shell.mouse`\nA length 2 vector giving the current coordinate of the mouse on the screen\n\n### `shell.prevMouse`\nA length 2 vector giving the previous coordinate of the mouse on the screen\n\n# Credits\n(c) 2013 Mikola Lysenko. MIT License\n","readmeFilename":"README.md","users":{"hughsk":true}}