First commit
This commit is contained in:
42
engine/texture.js
Executable file
42
engine/texture.js
Executable file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2013, kaj dijkstra ,
|
||||
* Author, Kaj Dijkstra.
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* texture
|
||||
**/
|
||||
class texture{
|
||||
|
||||
constructor( ){
|
||||
|
||||
this.data;
|
||||
this.dataType = false;
|
||||
|
||||
this.width = 1024;
|
||||
this.height = 1024;
|
||||
|
||||
this.name;
|
||||
this.address;
|
||||
|
||||
this.glTexture = gl.createTexture();
|
||||
this.face = gl.TEXTURE_2D;//this.gl2.TEXTURE_CUBE_MAP_POSITIVE_X
|
||||
|
||||
}
|
||||
|
||||
setViewport( viewport ){
|
||||
|
||||
this.viewport = viewport;
|
||||
this.gl = viewport.gl;
|
||||
|
||||
this.glTexture = this.gl.createTexture();
|
||||
this.face = this.gl.TEXTURE_2D;//this.gl2.TEXTURE_CUBE_MAP_POSITIVE_X
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export {texture as default};
|
||||
|
||||
Reference in New Issue
Block a user