Skip to content

Commit

Permalink
Fix broken character
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Oct 23, 2023
1 parent df23b7d commit e083085
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
34 changes: 17 additions & 17 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/textures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/webgl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e083085

Please sign in to comment.