Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is there any way to get OpenGL 4 to work within a node-webkit app? It would have to be OpenGL 4 and since it's running on a desktop app I would think there must be a way to get it to work. I can't seem to find anything online. All I find it about OpenGL ES, which won't cut it for what I'm thinking of testing out.

share|improve this question

2 Answers 2

node-webkit is just a Google Chrome bundled with html/css/js. Everything you can run in Chrome you can run in node-webkit, but nothing more. If you want to use graphics card in node-webkit your only option is to use WebGL.

share|improve this answer
    
I suppose modifying the google chrome base (assuming it's open source) to allow OpenGL 4 would be a large feat huh. –  user441521 Feb 19 at 14:10
    
I mean since node-webkit is meant to run on the desktop there is no reason to have the OpenGL ES limitation. One should be able to implement OpenGL 4 support to webkit I would think. I'll have to do more research. –  user441521 Feb 19 at 14:18

You can only use WebGL that implements OpenGL ES 2.0

Chrome uses the GPU to also render most of the webpage, css/js animations, etc..

Check this for more details on their dev guide: https://developer.chrome.com/native-client/devguide/coding/3D-graphics

share|improve this answer
    
Webkit is open source right? Couldn't you modify it to use OpenGL 4? –  user441521 Feb 19 at 23:00
    
In theory yes, but that would probably take months of work from a single developer. Would be easier to just port your project from OpenGL 4 to ES. –  Trader Feb 20 at 10:48
    
Porting is not an option for what I'm looking at doing. –  user441521 Feb 22 at 21:29
    
Not to mention that node-webit is meant to be ran on the desktop. Why should it have a reduced OpenGL version? It shouldn't if you ask me. This would really make creating OPenGL game engine editors much much easier and run on a much wider array of hardware. –  user441521 Feb 23 at 18:33
    
Node-webkit merely bundles the web app and Chrome. The reason it has OpenGL is because Chrome only uses that with WebGL because of web standards. I would recommend to just use OpenGL in another language like C++ or Java if you need OpenGL 4. –  Trader Feb 24 at 13:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.