1
This commit is contained in:
11
uview-plus/libs/util/gcanvas/context-webgl/ActiveInfo.js
Normal file
11
uview-plus/libs/util/gcanvas/context-webgl/ActiveInfo.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export default class WebGLActiveInfo {
|
||||
className = 'WebGLActiveInfo';
|
||||
|
||||
constructor({
|
||||
type, name, size
|
||||
}) {
|
||||
this.type = type;
|
||||
this.name = name;
|
||||
this.size = size;
|
||||
}
|
||||
}
|
||||
21
uview-plus/libs/util/gcanvas/context-webgl/Buffer.js
Normal file
21
uview-plus/libs/util/gcanvas/context-webgl/Buffer.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import {getTransferedObjectUUID} from './classUtils';
|
||||
|
||||
const name = 'WebGLBuffer';
|
||||
|
||||
function uuid(id) {
|
||||
return getTransferedObjectUUID(name, id);
|
||||
}
|
||||
|
||||
export default class WebGLBuffer {
|
||||
className = name;
|
||||
|
||||
constructor(id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
static uuid = uuid;
|
||||
|
||||
uuid() {
|
||||
return uuid(this.id);
|
||||
}
|
||||
}
|
||||
21
uview-plus/libs/util/gcanvas/context-webgl/Framebuffer.js
Normal file
21
uview-plus/libs/util/gcanvas/context-webgl/Framebuffer.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import {getTransferedObjectUUID} from './classUtils';
|
||||
|
||||
const name = 'WebGLFrameBuffer';
|
||||
|
||||
function uuid(id) {
|
||||
return getTransferedObjectUUID(name, id);
|
||||
}
|
||||
|
||||
export default class WebGLFramebuffer {
|
||||
className = name;
|
||||
|
||||
constructor(id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
static uuid = uuid;
|
||||
|
||||
uuid() {
|
||||
return uuid(this.id);
|
||||
}
|
||||
}
|
||||
298
uview-plus/libs/util/gcanvas/context-webgl/GLenum.js
Normal file
298
uview-plus/libs/util/gcanvas/context-webgl/GLenum.js
Normal file
File diff suppressed because it is too large
Load Diff
142
uview-plus/libs/util/gcanvas/context-webgl/GLmethod.js
Normal file
142
uview-plus/libs/util/gcanvas/context-webgl/GLmethod.js
Normal file
File diff suppressed because it is too large
Load Diff
23
uview-plus/libs/util/gcanvas/context-webgl/GLtype.js
Normal file
23
uview-plus/libs/util/gcanvas/context-webgl/GLtype.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const GLtype = {};
|
||||
|
||||
[
|
||||
"GLbitfield",
|
||||
"GLboolean",
|
||||
"GLbyte",
|
||||
"GLclampf",
|
||||
"GLenum",
|
||||
"GLfloat",
|
||||
"GLint",
|
||||
"GLintptr",
|
||||
"GLsizei",
|
||||
"GLsizeiptr",
|
||||
"GLshort",
|
||||
"GLubyte",
|
||||
"GLuint",
|
||||
"GLushort"
|
||||
].sort().map((typeName, i) => GLtype[typeName] = 1 >> (i + 1));
|
||||
|
||||
export default GLtype;
|
||||
|
||||
|
||||
|
||||
21
uview-plus/libs/util/gcanvas/context-webgl/Program.js
Normal file
21
uview-plus/libs/util/gcanvas/context-webgl/Program.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import {getTransferedObjectUUID} from './classUtils';
|
||||
|
||||
const name = 'WebGLProgram';
|
||||
|
||||
function uuid(id) {
|
||||
return getTransferedObjectUUID(name, id);
|
||||
}
|
||||
|
||||
export default class WebGLProgram {
|
||||
className = name;
|
||||
|
||||
constructor(id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
static uuid = uuid;
|
||||
|
||||
uuid() {
|
||||
return uuid(this.id);
|
||||
}
|
||||
}
|
||||
21
uview-plus/libs/util/gcanvas/context-webgl/Renderbuffer.js
Normal file
21
uview-plus/libs/util/gcanvas/context-webgl/Renderbuffer.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import {getTransferedObjectUUID} from './classUtils';
|
||||
|
||||
const name = 'WebGLRenderBuffer';
|
||||
|
||||
function uuid(id) {
|
||||
return getTransferedObjectUUID(name, id);
|
||||
}
|
||||
|
||||
export default class WebGLRenderbuffer {
|
||||
className = name;
|
||||
|
||||
constructor(id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
static uuid = uuid;
|
||||
|
||||
uuid() {
|
||||
return uuid(this.id);
|
||||
}
|
||||
}
|
||||
1191
uview-plus/libs/util/gcanvas/context-webgl/RenderingContext.js
Normal file
1191
uview-plus/libs/util/gcanvas/context-webgl/RenderingContext.js
Normal file
File diff suppressed because it is too large
Load Diff
22
uview-plus/libs/util/gcanvas/context-webgl/Shader.js
Normal file
22
uview-plus/libs/util/gcanvas/context-webgl/Shader.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import {getTransferedObjectUUID} from './classUtils';
|
||||
|
||||
const name = 'WebGLShader';
|
||||
|
||||
function uuid(id) {
|
||||
return getTransferedObjectUUID(name, id);
|
||||
}
|
||||
|
||||
export default class WebGLShader {
|
||||
className = name;
|
||||
|
||||
constructor(id, type) {
|
||||
this.id = id;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
static uuid = uuid;
|
||||
|
||||
uuid() {
|
||||
return uuid(this.id);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user