Textures

backend.Textures (Class)
Implements: spec.Textures

Instance Members

headless
load(path: String, ?options: Null<LoadTextureOptions>, _done: Function): Void
Name Type Default
path String
options Null<LoadTextureOptions> (optional)
_done Function

headless
loadFromBytes(bytes: haxe.io.Bytes, type: ceramic.ImageType, ?options: Null<LoadTextureOptions>, _done: Function): Void
Name Type Default
bytes haxe.io.Bytes
type ceramic.ImageType
options Null<LoadTextureOptions> (optional)
_done Function

headless
supportsHotReloadPath(): Bool
Returns
Bool

headless
createTexture(width: Int, height: Int, pixels: ceramic.UInt8Array): Texture
Name Type
width Int
height Int
pixels ceramic.UInt8Array
Returns
Texture

headless
destroyTexture(texture: Texture): Void
Name Type
texture Texture

headless
createRenderTarget(width: Int, height: Int, depth: Bool, stencil: Bool, antialiasing: Int): Texture
Name Type
width Int
height Int
depth Bool
stencil Bool
antialiasing Int
Returns
Texture

headless
destroy(texture: Texture): Void
Name Type
texture Texture

headless
getTextureId(texture: Texture): TextureId
Name Type
texture Texture
Returns
TextureId

headless
getTextureWidth(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
getTextureHeight(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
getTextureWidthActual(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
getTextureHeightActual(texture: Texture): Int
Name Type
texture Texture
Returns
Int

headless
fetchTexturePixels(texture: Texture, ?result: Null<ceramic.UInt8Array>): ceramic.UInt8Array
Name Type Default
texture Texture
result Null<ceramic.UInt8Array> (optional)
Returns
ceramic.UInt8Array

headless
submitTexturePixels(texture: Texture, pixels: ceramic.UInt8Array): Void
Name Type
texture Texture
pixels ceramic.UInt8Array

headless
setTextureFilter(texture: Texture, filter: Anonymous): Void
Name Type
texture Texture
filter Anonymous

headless
setTextureWrapS(texture: Texture, wrap: ceramic.TextureWrap): Void
Name Type
texture Texture
wrap ceramic.TextureWrap

headless
setTextureWrapT(texture: Texture, wrap: ceramic.TextureWrap): Void
Name Type
texture Texture
wrap ceramic.TextureWrap

headless
maxTexturesByBatch(): Int
Returns
Int

headless
getTextureIndex(texture: Texture): Int
Name Type
texture Texture
Returns
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

headless
pixelsToPng(width: Int, height: Int, pixels: ceramic.UInt8Array, ?path: String, done: Function): Void
Name Type Default
width Int
height Int
pixels ceramic.UInt8Array
path String (optional)
done Function

headless
new(): Void