sudo aptitude install libgl1-mesa-dev
node-waf configure build test
- works on linux
- nehe tutorials 3-5 have been ported
- osx port on its way (works, but segfaults randomly)
Somewhat working!
opengl bindings for nodejs
License: MIT License
Couple things need to be fixed before this will work
The fix here is simple.
return Undefined();
on methods that don't have a return value.
it is a great windowing lib, that should be pretty simple to integrate.
There seems to be an issue with the latest binding that causes the following output:
$ node test/sanity.js
Module included.
enabling GL_LINE_SMOOTH (2848)
ret: undefined
Is GL_LINE_SMOOTH enabled? undefined
Error: undefined
{ reference: true, value: 0.11, type: 'GLfloat' }
delta is now: 10.1
Sanity tests should be ran after a build, and included in a package.json under the scripts.test
section
'configure' finished successfully (0.096s)
Waf: Entering directory /home/siso/nodejs/node-ogl/build' [1/5] cxx: src/gl.cc -> build/default/src/gl_1.o [2/5] cxx: src/glu.cc -> build/default/src/glu_1.o ../src/glu.cc: In function âv8::Handle<v8::Value> node::glu_gluBuild1DMipmapLevels(const v8::Arguments&)â: ../src/glu.cc:96: error: âclass node::Bufferâ has no member named âdataâ ../src/glu.cc: In function âv8::Handle<v8::Value> node::glu_gluBuild1DMipmaps(const v8::Arguments&)â: ../src/glu.cc:127: error: âclass node::Bufferâ has no member named âdataâ ../src/glu.cc: In function âv8::Handle<v8::Value> node::glu_gluBuild2DMipmapLevels(const v8::Arguments&)â: ../src/gl.cc: In function âv8::Handle<v8::Value> node::gl_glGetCompressedTexImage(const v8::Arguments&)â: ../src/gl.cc:6787: error: âclass node::Bufferâ has no member named âdataâ Waf: Leaving directory
/home/siso/nodejs/node-ogl/build'
Build failed:
-> task failed (err #1):
{task: cxx glu.cc -> glu_1.o}
-> task failed (err #1):
{task: cxx gl.cc -> gl_1.o}
../src/glu.cc:166: error: âclass node::Bufferâ has no member named âdataâ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.