New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webgl-raub

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webgl-raub - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

8

package.json
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "webgl-raub",
"version": "2.0.4",
"version": "2.0.5",
"description": "WebGL for Node.js",

@@ -44,6 +44,6 @@ "license": "MIT",

"dependencies": {
"addon-tools-raub": "5.0.0",
"deps-opengl-raub": "3.0.0",
"segfault-raub": "1.1.0"
"addon-tools-raub": "5.1.0",
"deps-opengl-raub": "3.0.1",
"segfault-raub": "1.1.1"
}
}

@@ -10,3 +10,3 @@ # WebGL for Node.js

> npm i glfw-raub
> npm i webgl-raub

@@ -24,10 +24,12 @@

[WebGLRenderingContext docs](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext)
This module **does not provide** a window control system, and it
**can not set up an OpenGL context** on its own. This API simply maps the
native OpenGL function calls to their JS counterpart.
**TL;DR**: see [3d-core-raub](https://github.com/node-3d/3d-core-raub)
for a quick start in a fully sufficient environment.
## Usage
> Note: see [3d-core-raub](https://github.com/node-3d/3d-core-raub)
for a quick start in a fully sufficient environment.
```js

@@ -37,15 +39,13 @@ const webgl = require('webgl-raub');

Here `webgl` is what contains all the **WebGL** api - `WebGLRenderingContext`.
However a window is required to exercise your **GL** skills on. There is
[a nice implementation](https://github.com/raub/node-glfw) for that,
though different ones are quite possible.
As soon as you create and set up a window, simply follow the
Here `webgl` contains all the **WebGL** API, like a `WebGLRenderingContext` instance would.
See
[WebGLRenderingContext docs](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext).
> Note: if you are planning to use browser **WebGL** libs, be aware of their browser-affinity.
You would have to provide several additional interfaces to mimic the browser.
There is [node-glfw](https://github.com/raub/node-glfw) module, which exports the
`Document` class. It can be used the following way:
To use browser **WebGL** libs, like [three.js](https://threejs.org/),
several additional interfaces must also be provided to mimic the browser.
There is [node-glfw](https://github.com/raub/node-glfw) module, which solves both
window handling and additional browser-like interfaces. It is also bundled into
the [3d-core-raub](https://github.com/node-3d/3d-core-raub) module, for that matter.
```

@@ -64,3 +64,11 @@ const webgl = require('webgl-raub');

> OSX Note: some features may depend on OpenGL profile being used. Core profile
is necessary for VAO and other OpenGL 3.2+ features. Depending on your windowing
backend, set the OpenGL profile of your preference.
In case [glfw-raub](https://github.com/raub/node-glfw) is used,
the profile can be set through the `Window`/`Document`
[constructor](https://github.com/node-3d/glfw-raub#class-window) or with
`glfw.windowHint` calls.
---

@@ -77,2 +85,2 @@

a far better option: [node-3d-core](https://github.com/raub/node-3d-core),
which gets you two more steps ahead for free.
which gets you two steps ahead for free.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc