Package-level declarations

Types

Link copied to clipboard
actual class ZBitmap(byteArray: ByteArray)
expect class ZBitmap(byteArray: ByteArray)
actual class ZBitmap(val byteArray: ByteArray)
actual class ZBitmap(byteArray: ByteArray)
Link copied to clipboard

Represents a material component that can be applied to 3D objects for rendering.

Link copied to clipboard
@Serializable
data class ZMaterialData(var pbr: ZPbrMaterialData? = null, var phong: ZPhongMaterialData? = null, var texture: ZTexture? = null) : ZComponentData
Link copied to clipboard
@Serializable
data class ZPbrMaterialData(var color: ZColor, var emissive: ZColor, _emissiveIntensity: Float, _metalness: Float, _roughness: Float)

Represents data describing a physically-based rendering (PBR) material.

Link copied to clipboard
@Serializable
data class ZPhongMaterialData(var diffuse: ZColor, var ambient: ZColor, var specular: ZColor, var _shininess: Float)

Represents data describing a Phong lighting model material.

Link copied to clipboard
class ZTexture : ZRenderizableComponent<ZTextureRenderer> , ZBindeable

Represents a texture component in the Zernikalos framework.

Link copied to clipboard
@Serializable
enum ZTextureChannels : Enum<ZTextureChannels>

Texture channel format specification.

Link copied to clipboard

Texture color space specification.

Link copied to clipboard

Texture filter mode for minification and magnification filtering.

Link copied to clipboard
@Serializable
enum ZTextureWrapMode : Enum<ZTextureWrapMode>

Texture wrap mode for texture coordinate addressing.

Functions

Link copied to clipboard
fun buildImage(nativeData: ArrayBufferView): HTMLImageElement
Link copied to clipboard
suspend fun buildImageBitmap(dataArray: ArrayBufferView): ImageBitmap
Link copied to clipboard
fun buildImageBitmapAsync(dataArray: ArrayBufferView): Promise<ImageBitmap>
Link copied to clipboard
fun ZTextureData.getFormatString(): String

Helper function to build a format string from texture components. Useful for debugging and logging.