loadBufferTexture

fun loadBufferTexture(fileOrUrl: String, formatHint: BufferTextureFileFormat? = BufferTextureFileFormat.ORB, session: Session? = Session.active): BufferTexture(source)

load a buffer texture from file or url

Parameters

fileOrUrl

filename or url

formatHint

a format hint for the loader

session

the session to which the buffer texture will be registered


fun loadBufferTexture(file: File, formatHint: BufferTextureFileFormat? = BufferTextureFileFormat.ORB, session: Session? = Session.active): BufferTexture(source)

load a buffer texture from a file

Parameters

file

the file to load the buffer texture from

formatHint

a format hint for the loader

session

the session to which the buffer texture will be registered


fun loadBufferTexture(url: URL, formatHint: BufferTextureFileFormat? = BufferTextureFileFormat.ORB, session: Session? = Session.active): BufferTexture(source)

load a BufferTexture from a url

Parameters

url

the url to load from

formatHint

a format hint for the loader

session

the session the buffer texture will be created in