Textures
backend.Textures (Class)
Instance Members
headless
supportsHotReloadPath(): Bool
headless
createTexture(width: Int, height: Int, pixels: ceramic.UInt8Array): Texture
headless
destroyTexture(texture: Texture): Void
headless
getTextureId(texture: Texture): TextureId
headless
getTextureWidth(texture: Texture): Int
headless
getTextureHeight(texture: Texture): Int
headless
getTextureWidthActual(texture: Texture): Int
headless
getTextureHeightActual(texture: Texture): Int
headless
fetchTexturePixels(texture: Texture, ?result: Null<ceramic.UInt8Array>): ceramic.UInt8Array
headless
submitTexturePixels(texture: Texture, pixels: ceramic.UInt8Array): Void
headless
setTextureFilter(texture: Texture, filter: Anonymous): Void
Name |
Type |
texture |
Texture |
filter |
Anonymous |
headless
setTextureWrapS(texture: Texture, wrap: ceramic.TextureWrap): Void
headless
setTextureWrapT(texture: Texture, wrap: ceramic.TextureWrap): Void
headless
maxTexturesByBatch(): Int
headless
getTextureIndex(texture: Texture): Int
headless
textureToPng(texture: Texture, ?reversePremultiplyAlpha: Bool = true, ?path: String, done: Function): Void
Name |
Type |
Default |
texture |
Texture |
|
reversePremultiplyAlpha |
Bool |
true |
path |
String |
(optional) |
done |
Function |
|