Texture
- class cee.Texture()
- Factory for creating texture objects 
Methods
Methods
fromHTMLImageElement
- cee.Texture.fromHTMLImageElement(htmlImageElement, textureOptions)
- Creates a texture image object from an HTMLImageElement - Arguments
- htmlImageElement ( - HTMLImageElement) –
- textureOptions ( - cee.TextureOptions) –
 
- Return type
- cee.Texture
 - Note: A general rule is that both dimensions must be a power of two. - To avoid this limitation, pass in texture options with generateMipmaps set to false, wrapMode set to TextureWrapMode.CLAMP_TO_EDGE and minFilter set to LINEAR or NEAREST. E.g.: - const texture = cee.Texture.fromImageData(imageData, { generateMipmaps: false, wrapMode: cee.TextureWrapMode.CLAMP_TO_EDGE, minFilter: cee.TextureMinFilter.LINEAR }); 
fromImageData
- cee.Texture.fromImageData(imageData, textureOptions)
- Creates a texture image object from ImageData - Arguments
- imageData ( - ImageData) –
- textureOptions ( - cee.TextureOptions) –
 
- Return type
- cee.Texture
 - Note: A general rule is that both dimensions must be a power of two. - To avoid this limitation, pass in texture options with generateMipmaps set to false, wrapMode set to TextureWrapMode.CLAMP_TO_EDGE and minFilter set to LINEAR or NEAREST. E.g.: - const texture = cee.Texture.fromImageData(imageData, { generateMipmaps: false, wrapMode: cee.TextureWrapMode.CLAMP_TO_EDGE, minFilter: cee.TextureMinFilter.LINEAR }); 
