Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export WebGLRenderingContext, WebGLTexture from node-index.js and #263

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "angle"]
path = angle
url = https://github.com/stackgl/angle.git
url = https://github.com/kartikdutt18/angle
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# gl
# gl-with-warp (Built on stack-gl/headless-gl)

Changes on top off headless-gl:

1. Use FORCE_USE_WARP in env variables to enable rendering via WARP.
2. To Confirm WARP is being used, use THROW_IF_NOT_WARP to confirm.
3. WebGLRenderingContext exported from node-index.

[![Travis CI](https://travis-ci.com/stackgl/headless-gl.svg?branch=master)](https://travis-ci.com/stackgl/headless-gl)
[![Appveyor](https://ci.appveyor.com/api/projects/status/g5ypwyffmtg1iu83/branch/master?svg=true)](https://ci.appveyor.com/project/dhritzkiv/headless-gl)
Expand Down
Empty file modified deps/windows/dll/x64/d3dcompiler_47.dll
100755 → 100644
Empty file.
Binary file modified deps/windows/dll/x64/libEGL.dll
100755 → 100644
Binary file not shown.
Binary file modified deps/windows/dll/x64/libGLESv2.dll
100755 → 100644
Binary file not shown.
Binary file modified deps/windows/lib/x64/libEGL.lib
100755 → 100644
Binary file not shown.
Binary file modified deps/windows/lib/x64/libGLESv2.lib
100755 → 100644
Binary file not shown.
3 changes: 3 additions & 0 deletions src/javascript/node-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ function createContext (width, height, options) {
}

module.exports = createContext
const { WebGLTexture } = require("./webgl-texture")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { WebGLTexture } = require("./webgl-texture")
const { WebGLTexture } = require('./webgl-texture')

and add one and only one blank line to the end of the file to placate standard running on AppVeyor.

standard | snazzy && tape test/*.js | faucet
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run standard --fix to automatically fix some problems.
C:\projects\headless-gl\src\javascript\node-index.js
130:34 error Strings must use singlequote quotes
132:43 error Newline required at end of file but not found eol-last
✖ 2 problems
Command exited with code 1

module.exports.WebGLRenderingContext = WebGLRenderingContext
module.exports.WebGLTexture = WebGLTexture