diff --git a/index.d.ts b/index.d.ts index b5e5603..a3596eb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -44,22 +44,22 @@ declare module "webgl-raub" { name: string; } - const WebGLRenderingContext = class WebGLRenderingContext extends TGLObject {}; - const WebGLProgram = class WebGLProgram extends TGLObject {}; - const WebGLQuery = class WebGLQuery extends TGLObject {}; - const WebGLShader = class WebGLShader extends TGLObject {}; - const WebGLVertexArrayObject = class WebGLVertexArrayObject extends TGLObject {}; - const WebGLBuffer = class WebGLBuffer extends TGLObject {}; - const WebGLVertexArray = class WebGLVertexArray extends TGLObject {}; - const WebGLFramebuffer = class WebGLFramebuffer extends TGLObject {}; - const WebGLRenderbuffer = class WebGLRenderbuffer extends TGLObject {}; - const WebGLTexture = class WebGLTexture extends TGLObject {}; - const WebGLUniformLocation = class WebGLUniformLocation extends TGLObject {}; - const WebGLActiveInfo = class WebGLActiveInfo extends TGLActiveInfo {}; - const WebGLTransformFeedback = class WebGLTransformFeedback extends TGLObject {}; - const WebGLSampler = class WebGLSampler extends TGLObject {}; - const WebGLSync = class WebGLSync extends TGLObject {}; - const WebGL2RenderingContext = class WebGL2RenderingContext extends TGLObject {}; + class WebGLRenderingContext extends TGLObject {} + class WebGLProgram extends TGLObject {} + class WebGLQuery extends TGLObject {} + class WebGLShader extends TGLObject {} + class WebGLVertexArrayObject extends TGLObject {} + class WebGLBuffer extends TGLObject {} + class WebGLVertexArray extends TGLObject {} + class WebGLFramebuffer extends TGLObject {} + class WebGLRenderbuffer extends TGLObject {} + class WebGLTexture extends TGLObject {} + class WebGLUniformLocation extends TGLObject {} + class WebGLActiveInfo extends TGLActiveInfo {} + class WebGLTransformFeedback extends TGLObject {} + class WebGLSampler extends TGLObject {} + class WebGLSync extends TGLObject {} + class WebGL2RenderingContext extends TGLObject {} /** * Add `WebGL2RenderingContext` to global, and set the GL object prototype. @@ -533,7 +533,7 @@ declare module "webgl-raub" { target: number, level: number, internalformat: number, width: number, height: number, border: number, image: TImage, ) => void; - const сompressedTexImage3D: ( + const compressedTexImage3D: ( target: number, level: number, internalformat: number, width: number, height: number, depth: number, border: number, image: TImage, ) => void; diff --git a/src/cpp/bindings.cpp b/src/cpp/bindings.cpp index eb063a3..562547c 100644 --- a/src/cpp/bindings.cpp +++ b/src/cpp/bindings.cpp @@ -189,7 +189,7 @@ static inline void initMethods(Napi::Env env, Napi::Object exports) { JS_GL_SET_METHOD(compressedTexSubImage2D); JS_GL_SET_METHOD(texStorage2D); JS_GL_SET_METHOD(compressedTexImage2D); - JS_GL_SET_METHOD(сompressedTexImage3D); + JS_GL_SET_METHOD(compressedTexImage3D); JS_GL_SET_METHOD(compressedTexSubImage3D); // Uniform diff --git a/src/cpp/textures.cpp b/src/cpp/textures.cpp index 5749e19..0b4db16 100644 --- a/src/cpp/textures.cpp +++ b/src/cpp/textures.cpp @@ -338,7 +338,7 @@ DBG_EXPORT JS_METHOD(compressedTexImage2D) { NAPI_ENV; RET_UNDEFINED; } -DBG_EXPORT JS_METHOD(сompressedTexImage3D) { NAPI_ENV; +DBG_EXPORT JS_METHOD(compressedTexImage3D) { NAPI_ENV; REQ_INT32_ARG(0, target); REQ_INT32_ARG(1, level); REQ_INT32_ARG(2, internalformat); diff --git a/src/cpp/webgl.hpp b/src/cpp/webgl.hpp index 5493dd1..4a4495c 100644 --- a/src/cpp/webgl.hpp +++ b/src/cpp/webgl.hpp @@ -137,7 +137,7 @@ namespace webgl { DBG_EXPORT JS_METHOD(compressedTexSubImage2D); DBG_EXPORT JS_METHOD(texStorage2D); DBG_EXPORT JS_METHOD(compressedTexImage2D); - DBG_EXPORT JS_METHOD(сompressedTexImage3D); + DBG_EXPORT JS_METHOD(compressedTexImage3D); DBG_EXPORT JS_METHOD(compressedTexSubImage3D); // Uniform