Coder Social home page Coder Social logo

node-ogl's Introduction

Installation

Building

Ubuntu

sudo aptitude install libgl1-mesa-dev

node-waf configure build test

Status

  • works on linux
  • nehe tutorials 3-5 have been ported
  • osx port on its way (works, but segfaults randomly)

Somewhat working!

node-ogl's People

Contributors

tmpvar avatar ncb000gt avatar

Stargazers

ZoLo avatar Chris avatar he110world avatar David Konsumer avatar James B. Pollack, MFA  avatar Sergey Todyshev avatar M Haidar Hanif avatar Ivo Georgiev avatar  avatar Julian Gruber avatar m1k3 avatar Yoshiharu avatar Dave Edelhart avatar Ion avatar Nick Porcino avatar  avatar Suhail Manzoor avatar Chris Vickery avatar JT5D avatar  avatar  avatar Diogo Baeder avatar trarck avatar Andrew Johnston avatar Yoshiaki Kawazu avatar Ryan Gahl avatar Norman X avatar  avatar Morgan Craft avatar Oleg Efimov avatar Xavi avatar Nathan Rajlich avatar  avatar  avatar Penk Chen avatar  avatar Josh Holbrook avatar  avatar Brian McKenna avatar Donny Viszneki avatar TJ Holowaychuk avatar Cary Haynie avatar Aaron Qian avatar Orlando Vazquez avatar Jean Jacques Warmerdam avatar  avatar

Watchers

 avatar ND avatar James Cloos avatar  avatar

node-ogl's Issues

Cannot build on osx

Couple things need to be fixed before this will work

  • Since the headers were generated using mesa there are some mesa specific methods that dont resolve
  • osx uses OpenGL/*.h for headers, so a common.h file will need to be hand-created with #ifdefs

Utilize node-sfml

it is a great windowing lib, that should be pretty simple to integrate.

test/sanity.js is returning `undefined`

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

cannot compile on ubuntu 9.10

'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â

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.