Textures

backend.Textures (Class)
Implements: spec.Textures

Instance Members

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

unity
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

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

unity
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

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

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

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

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

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

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

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

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

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

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

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

unity
supportsHotReloadPath(): Bool
Returns
Bool

unity
maxTexturesByBatch(): Int
Returns
Int

unity
getTextureIndex(texture: Texture): Int
Name Type
texture Texture
Returns
Int

unity
textureToPng(texture: Texture, ?reversePremultiplyAlpha: Bool = true, ?path: String, done: Function): Void
Name Type Default
texture Texture
reversePremultiplyAlpha Bool true
path String (optional)
done Function

unity
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

unity
new(): Void

Private Members

unity
nextRenderIndex: Int

unity
nextPixelsIndex: Int

unity
nextBytesIndex: Int

unity
imageExtensions: Array<String>

unity
loadingTextureCallbacks: Map

unity
loadedTextures: Map

unity
loadedTexturesRetainCount: Map

Metadata

Name Parameters
:hxGen -