Home Reference Source
import Texture from './core/cgp/cgp_texture.js'
public class | source

Texture

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

height: *

public

id: *

public

name: *

public

textureType: string

public

width: *

Private Members
private

_cgp: *

private

_log: *

Method Summary

Public Methods
public

getInfo(): *

public

initTexture(img: Object, filter: Number): *

set texture data from an image/canvas object

Public Constructors

public constructor() source

Public Members

public height: * source

public id: * source

public name: * source

public textureType: string source

public width: * source

Private Members

private _cgp: * source

private _log: * source

Public Methods

public getInfo(): * source

Return:

*

public initTexture(img: Object, filter: Number): * source

set texture data from an image/canvas object

Params:

NameTypeAttributeDescription
img Object

image

filter Number

Return:

*