@rapidsai/webgl
v22.12.1
Published
NVIDIA RAPIDS OpenGL bindings exposed to node as WebGL2 APIs
Downloads
4
Keywords
Readme
node-webgl (npm install @rapidsai/webgl
)
A node native addon that provides OpenGL bindings via GLEW (http://glew.sourceforge.net/).
GLEW is a cross-platform OpenGL extension loader, providing runtime mechanisms for querying
and loading only the OpenGL extensions available on the target platform and OpenGL version.
These bindings provide an API that conforms to the DOM's WebGLContext and WebGL2Context
APIs, but are rendered via OpenGL into a platform-native GLFW window.
WebGL APIs
WebGLRenderingContext
WebGL2RenderingContext
WebGLProgram
WebGLShader
WebGLBuffer
WebGLVertexArrayObject
WebGLFramebuffer
WebGLRenderbuffer
WebGLTexture
WebGLUniformLocation
WebGLActiveInfo
WebGLTransformFeedback
OpenGL APIs
glInit, bindAttribLocation, disableVertexAttribArray, enableVertexAttribArray, getActiveAttrib, getAttribLocation, getVertexAttrib, getVertexAttribOffset, vertexAttrib1f, vertexAttrib1fv, vertexAttrib2f, vertexAttrib2fv, vertexAttrib3f, vertexAttrib3fv, vertexAttrib4f, vertexAttrib4fv, vertexAttribPointer, vertexAttribIPointer, blendColor, blendEquation, blendEquationSeparate, blendFunc, blendFuncSeparate, createBuffer, deleteBuffer, isBuffer, bindBuffer, bindBufferBase, bindBufferRange, bufferData, bufferSubData, copyBufferSubData, getBufferSubData, getBufferParameter, createFramebuffer, deleteFramebuffer, isFramebuffer, bindFramebuffer, bindFrameBuffer, blitFrameBuffer, checkFramebufferStatus, framebufferRenderbuffer, framebufferTexture2D, getFramebufferAttachmentParameter, createProgram, deleteProgram, isProgram, getProgramInfoLog, getProgramParameter, linkProgram, useProgram, validateProgram, createRenderbuffer, deleteRenderbuffer, isRenderbuffer, bindRenderbuffer, getRenderbufferParameter, renderbufferStorage, deleteShader, createShader, isShader, attachShader, compileShader, detachShader, getAttachedShaders, getShaderInfoLog, getShaderParameter, getShaderSource, shaderSource, clearStencil, stencilFunc, stencilFuncSeparate, stencilMask, stencilMaskSeparate, stencilOp, stencilOpSeparate, createTexture, deleteTexture, isTexture, bindTexture, activeTexture, copyTexImage2D, copyTexSubImage2D, generateMipmap, getTexParameter, texImage2D, texParameterf, texParameteri, texSubImage2D, getActiveUniform, getUniform, getUniformLocation, uniform1f, uniform1fv, uniform1i, uniform1iv, uniform2f, uniform2fv, uniform2i, uniform2iv, uniform3f, uniform3fv, uniform3i, uniform3iv, uniform4f, uniform4fv, uniform4i, uniform4iv, uniformMatrix2fv, uniformMatrix3fv, uniformMatrix4fv, createVertexArray, deleteVertexArray, isVertexArray, bindVertexArray, drawArraysInstanced, drawElementsInstanced, vertexAttribDivisor, createTransformFeedback, deleteTransformFeedback, isTransformFeedback, bindTransformFeedback, beginTransformFeedback, endTransformFeedback, pauseTransformFeedback, resumeTransformFeedback, transformFeedbackVaryings, getTransformFeedbackVarying, clear, clearColor, clearDepth, colorMask, cullFace, depthFunc, depthMask, depthRange, disable, drawArrays, drawElements, enable, finish, flush, frontFace, getError, getParameter, getRenderTarget, getSupportedExtensions, hint, isEnabled, lineWidth, pixelStorei, polygonOffset, readPixels, sampleCoverage, scissor, viewport