Package-level declarations

Types

Link copied to clipboard
sealed class AnimationChannel
Link copied to clipboard
data class GltfAccessor(val bufferView: Int, val byteOffset: Int, val componentType: Int, val count: Int, val max: DoubleArray, val min: DoubleArray, val type: String)
Link copied to clipboard
data class GltfAnimation(val name: String?, val channels: List<GltfChannel>, val samplers: List<GltfAnimationSampler>)
Link copied to clipboard
data class GltfAnimationSampler(val input: Int, val interpolation: String, val output: Int)
Link copied to clipboard
data class GltfAsset(val generator: String?, val version: String?)
Link copied to clipboard
data class GltfBuffer(val byteLength: Int, val uri: String?)
Link copied to clipboard
data class GltfBufferView(val buffer: Int, val byteOffset: Int?, val byteLength: Int, val byteStride: Int?, val target: Int)
Link copied to clipboard
data class GltfCamera(val name: String?, val type: String, val perspective: GltfCameraPerspective?, val orthographic: GltfCameraOrthographic?)
Link copied to clipboard
data class GltfCameraOrthographic(val xmag: Double, val ymag: Double, val zfar: Double, val znear: Double)
Link copied to clipboard
data class GltfCameraPerspective(val aspectRatio: Double?, val yfov: Double, val zfar: Double?, val znear: Double)
Link copied to clipboard
data class GltfChannel(val sampler: Int, val target: GltfChannelTarget)
Link copied to clipboard
data class GltfChannelTarget(val node: Int?, val path: String?)
Link copied to clipboard
data class GltfDrawCommand(val vertexBuffer: VertexBuffer, val indexBuffer: IndexBuffer?, val primitive: DrawPrimitive, var vertexCount: Int)
Link copied to clipboard
data class GltfExtensions(val KHR_lights_punctual: KHRLightsPunctual?)
Link copied to clipboard
class GltfFile(val asset: GltfAsset?, val scene: Int?, val scenes: List<GltfScene>, val nodes: List<GltfNode>, val meshes: List<GltfMesh>, val accessors: List<GltfAccessor>, val materials: List<GltfMaterial>, val bufferViews: List<GltfBufferView>, val buffers: List<GltfBuffer>, val images: List<GltfImage>?, val textures: List<GltfTexture>?, val samplers: List<GltfSampler>?, val animations: List<GltfAnimation>?, val skins: List<GltfSkin>?, val extensions: GltfExtensions?, val cameras: List<GltfCamera>?)
Link copied to clipboard
data class GltfImage(val uri: String?, val bufferView: Int?)
Link copied to clipboard
data class GltfMaterial(val name: String, val alphaMode: String?, val doubleSided: Boolean?, val normalTexture: GltfMaterialTexture?, val occlusionTexture: GltfMaterialTexture?, val emissiveTexture: GltfMaterialTexture?, val emissiveFactor: DoubleArray?, val pbrMetallicRoughness: GltfPbrMetallicRoughness?, val extensions: GltfMaterialExtensions?)
Link copied to clipboard
data class GltfMaterialExtensions(val KHR_materials_pbrSpecularGlossiness: KhrMaterialsPbrSpecularGlossiness?)
Link copied to clipboard
data class GltfMaterialTexture(val index: Int, val scale: Double?, val texCoord: Int?)
Link copied to clipboard
data class GltfMesh(val primitives: List<GltfPrimitive>, val name: String)
Link copied to clipboard
data class GltfNode(val name: String?, val children: IntArray?, val matrix: DoubleArray?, val scale: DoubleArray?, val rotation: DoubleArray?, val translation: DoubleArray?, val mesh: Int?, val skin: Int?, val camera: Int?, val extensions: GltfNodeExtensions?) : Record
Link copied to clipboard
data class GltfNodeExtensions(val KHR_lights_punctual: KHRLightsPunctualIndex?) : Record
Link copied to clipboard
data class GltfPbrMetallicRoughness(val baseColorFactor: DoubleArray?, val baseColorTexture: GltfMaterialTexture?, var metallicRoughnessTexture: GltfMaterialTexture?, val roughnessFactor: Double?, val metallicFactor: Double?)
Link copied to clipboard
data class GltfPrimitive(val attributes: LinkedHashMap<String, Int>, val indices: Int?, val mode: Int?, val material: Int)
Link copied to clipboard
data class GltfSampler(val magFilter: Int, val minFilter: Int, val wrapS: Int, val wrapT: Int)
Link copied to clipboard
data class GltfScene(val nodes: IntArray) : Record
Link copied to clipboard
class GltfSceneData(val scenes: List<List<SceneNode>>, val animations: List<SceneAnimation>)
Link copied to clipboard
Link copied to clipboard
data class GltfSkin(val inverseBindMatrices: Int, val joints: IntArray, val skeleton: Int)
Link copied to clipboard
data class GltfTexture(val sampler: Int, val source: Int)
Link copied to clipboard
Link copied to clipboard
data class KHRLightsPunctualIndex(val light: Int) : Record
Link copied to clipboard
data class KHRLightsPunctualLight(val color: DoubleArray?, val type: String, val intensity: Double?, val range: Double, val spot: KHRLightsPunctualLightSpot?)
Link copied to clipboard
data class KHRLightsPunctualLightSpot(val innerConeAngle: Double?, val outerConeAngle: Double?)
Link copied to clipboard
class KhrMaterialsPbrSpecularGlossiness(val diffuseFactor: DoubleArray?, val diffuseTexture: GltfMaterialTexture?)
Link copied to clipboard
class QuaternionChannel(val target: KMutableProperty0<Quaternion>, val keyframer: KeyframerChannelQuaternion) : AnimationChannel
Link copied to clipboard
class SceneAnimation(var channels: List<AnimationChannel>)
Link copied to clipboard
class Vector3Channel(val target: KMutableProperty0<Vector3>, val keyframer: KeyframerChannelVector3, val default: Vector3) : AnimationChannel

Properties

Link copied to clipboard
const val GLTF_ARRAY_BUFFER: Int = 34962
Link copied to clipboard
const val GLTF_BYTE: Int = 5120
Link copied to clipboard
const val GLTF_ELEMENT_ARRAY_BUFFER: Int = 34963
Link copied to clipboard
const val GLTF_FLOAT: Int = 5126
Link copied to clipboard
const val GLTF_INT: Int = 5124
Link copied to clipboard
const val GLTF_SHORT: Int = 5122
Link copied to clipboard
const val GLTF_UNSIGNED_BYTE: Int = 5121
Link copied to clipboard
const val GLTF_UNSIGNED_INT: Int = 5125
Link copied to clipboard
const val GLTF_UNSIGNED_SHORT: Int = 5123

Functions

Link copied to clipboard

Tools to convert GltfFile into a DNK3 scene

Link copied to clipboard
Link copied to clipboard