Texture
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
gpuTexture: * |
|
public |
|
|
public |
height: * |
|
public |
name: * |
|
public |
width: * |
Private Members | ||
private |
_cgp: * |
|
private |
_log: * |
Method Summary
Public Methods | ||
public |
createView(): * |
|
public |
dispose() |
|
public |
getInfo(): * |
|
public |
initFromData(data: Array<Number>, w: Number, h: Number, filter: Number, wrap: Number) |
|
public |
initTexture(img: Object, filter: Number): * set texture data from an image/canvas object |
Inherited Summary
From class CgTexture | ||
public |
height: number |
|
public |
id: * |
|
public |
name: string |
|
public |
pixelFormat: * |
|
public |
width: number |
Public Constructors
Public Members
public gpuTexture: * source
public gpuTextureDescriptor: * source
Private Members
private _cgp: * source
private _log: * source
Public Methods
public dispose() source
public initFromData(data: Array<Number>, w: Number, h: Number, filter: Number, wrap: Number) source
Params:
Name | Type | Attribute | Description |
data | Array<Number> | rgb color array [r,g,b,a,r,g,b,a,...] |
|
w | Number | width |
|
h | Number | height |
|
filter | Number | ||
wrap | Number |
public initTexture(img: Object, filter: Number): * source
set texture data from an image/canvas object
Params:
Name | Type | Attribute | Description |
img | Object | image |
|
filter | Number |
Return:
* |