Class RootBase<TAccessor, TAnimation, TAsset, TBuffer, TBufferView, TCamera, TExtensions, TImage, TMaterial, TMesh, TNode, TSampler, TScene, TSkin, TTexture>
The root object for a glTF asset.
Inheritance
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public abstract class RootBase<TAccessor, TAnimation, TAsset, TBuffer, TBufferView, TCamera, TExtensions, TImage, TMaterial, TMesh, TNode, TSampler, TScene, TSkin, TTexture> : RootBase where TAccessor : AccessorBase where TAnimation : AnimationBase where TAsset : Asset where TBuffer : Buffer where TBufferView : BufferViewBase where TCamera : CameraBase where TExtensions : RootExtensions where TImage : Image where TMaterial : MaterialBase where TMesh : MeshBase where TNode : NodeBase where TSampler : Sampler where TScene : Scene where TSkin : Skin where TTexture : TextureBase
Type Parameters
Name | Description |
---|---|
TAccessor | Accessor type |
TAnimation | Animation type |
TAsset | Asset type |
TBuffer | Buffer type |
TBufferView | BufferView type |
TCamera | Camera type |
TExtensions | Extensions type |
TImage | Image type |
TMaterial | Material type |
TMesh | Mesh type |
TNode | Node type |
TSampler | Sampler type |
TScene | Scene type |
TSkin | Skin type |
TTexture | Texture type |
Fields
accessors
An array of accessors. An accessor is a typed view into a bufferView.
Declaration
public TAccessor[] accessors
Field Value
Type | Description |
---|---|
TAccessor[] |
See Also
animations
An array of keyframe animations.
Declaration
public TAnimation[] animations
Field Value
Type | Description |
---|---|
TAnimation[] |
See Also
asset
Metadata about the glTF asset.
Declaration
public TAsset asset
Field Value
Type | Description |
---|---|
TAsset |
See Also
bufferViews
A view into a buffer generally representing a subset of the buffer.
Declaration
public TBufferView[] bufferViews
Field Value
Type | Description |
---|---|
TBufferView[] |
See Also
buffers
A buffer points to binary geometry, animation, or skins.
Declaration
public TBuffer[] buffers
Field Value
Type | Description |
---|---|
TBuffer[] |
See Also
cameras
A camera’s projection
Declaration
public TCamera[] cameras
Field Value
Type | Description |
---|---|
TCamera[] |
See Also
extensions
glTF root extensions
Declaration
public TExtensions extensions
Field Value
Type | Description |
---|---|
TExtensions |
See Also
images
Image data used to create a texture.
Declaration
public TImage[] images
Field Value
Type | Description |
---|---|
TImage[] |
See Also
materials
The material appearance of a primitive.
Declaration
public TMaterial[] materials
Field Value
Type | Description |
---|---|
TMaterial[] |
See Also
meshes
An array of meshes. A mesh is a set of primitives to be rendered.
Declaration
public TMesh[] meshes
Field Value
Type | Description |
---|---|
TMesh[] |
See Also
nodes
An object defining the hierarchy relations and the local transform of its content.
Declaration
public TNode[] nodes
Field Value
Type | Description |
---|---|
TNode[] |
See Also
samplers
Texture sampler properties for filtering and wrapping modes.
Declaration
public TSampler[] samplers
Field Value
Type | Description |
---|---|
TSampler[] |
See Also
scenes
Scene, the top level hierarchy object.
Declaration
public TScene[] scenes
Field Value
Type | Description |
---|---|
TScene[] |
See Also
skins
Joints and matrices defining a skinned mesh.
Declaration
public TSkin[] skins
Field Value
Type | Description |
---|---|
TSkin[] |
See Also
textures
A texture is defined by an image and a sampler.
Declaration
public TTexture[] textures
Field Value
Type | Description |
---|---|
TTexture[] |
See Also
Properties
Accessors
An array of accessors. An accessor is a typed view into a bufferView.
Declaration
public override IReadOnlyList<AccessorBase> Accessors { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<AccessorBase> |
Overrides
See Also
Animations
An array of keyframe animations.
Declaration
public override IReadOnlyList<AnimationBase> Animations { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<AnimationBase> |
Overrides
See Also
Asset
Metadata about the glTF asset.
Declaration
public override Asset Asset { get; }
Property Value
Type | Description |
---|---|
Asset |
Overrides
See Also
BufferViews
An array of bufferViews. A bufferView is a view into a buffer generally representing a subset of the buffer.
Declaration
public override IReadOnlyList<BufferViewBase> BufferViews { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<BufferViewBase> |
Overrides
See Also
Buffers
An array of buffers. A buffer points to binary geometry, animation, or skins.
Declaration
public override IReadOnlyList<Buffer> Buffers { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Buffer> |
Overrides
See Also
Cameras
An array of cameras. A camera defines a projection matrix.
Declaration
public override IReadOnlyList<CameraBase> Cameras { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<CameraBase> |
Overrides
See Also
Extensions
glTF root extensions
Declaration
public override RootExtensions Extensions { get; }
Property Value
Type | Description |
---|---|
RootExtensions |
Overrides
See Also
Images
An array of images. An image defines data used to create a texture.
Declaration
public override IReadOnlyList<Image> Images { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Image> |
Overrides
See Also
Materials
An array of materials. A material defines the appearance of a primitive.
Declaration
public override IReadOnlyList<MaterialBase> Materials { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<MaterialBase> |
Overrides
See Also
Meshes
An array of meshes. A mesh is a set of primitives to be rendered.
Declaration
public override IReadOnlyList<MeshBase> Meshes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<MeshBase> |
Overrides
See Also
Nodes
An array of nodes.
Declaration
public override IReadOnlyList<NodeBase> Nodes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<NodeBase> |
Overrides
See Also
Samplers
An array of samplers. A sampler contains properties for texture filtering and wrapping modes.
Declaration
public override IReadOnlyList<Sampler> Samplers { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Sampler> |
Overrides
See Also
Scenes
An array of scenes.
Declaration
public override IReadOnlyList<Scene> Scenes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Scene> |
Overrides
See Also
Skins
An array of skins. A skin is defined by joints and matrices.
Declaration
public override IReadOnlyList<Skin> Skins { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Skin> |
Overrides
See Also
Textures
An array of textures.
Declaration
public override IReadOnlyList<TextureBase> Textures { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<TextureBase> |