node-3d / webgl-raub

OpenGL/WebGL for Node.js
https://github.com/node-3d/node-3d
MIT License
80 stars 12 forks source link

Missing some API of WebGL #7

Closed justgook closed 4 years ago

justgook commented 4 years ago

Properties:

drawingBufferWidth drawingBufferHeight

raub commented 4 years ago

Hi, this can probably be implemented with glGetIntegerv(GL_VIEWPORT, viewport);, but I'm not sure if the values will be correct for pixel ratio !=1 (Retina).

The other way around it is to implement it from the GLFW side. That will be correct for sure, but will also depend on the other module implementation.

raub commented 4 years ago

Fixed in webgl-raub@2.0.1