Documentation ¶
Index ¶
- type Scene
- func (scene *Scene) ExportGLTF() error
- func (scene *Scene) GetAccessorBufferView(accessor_index int) (*gltf.Accessor, *gltf.BufferView, error)
- func (scene *Scene) GetAccessorIx(index int) (*gltf.Accessor, error)
- func (scene *Scene) GetAccessors() []*gltf.Accessor
- func (scene *Scene) GetBufferDataIx(buffer_view_index int) ([]byte, error)
- func (scene *Scene) GetBufferIx(index int) (*gltf.Buffer, error)
- func (scene *Scene) GetBufferViewIx(index int) (*gltf.BufferView, error)
- func (scene *Scene) GetBufferViews() []*gltf.BufferView
- func (scene *Scene) GetBuffers() []*gltf.Buffer
- func (scene *Scene) GetDefaultScene() int
- func (scene *Scene) GetImageIx(index int) (*gltf.Image, error)
- func (scene *Scene) GetImages() []*gltf.Image
- func (scene *Scene) GetMaterialIx(index int) (*gltf.Material, error)
- func (scene *Scene) GetMaterials() []*gltf.Material
- func (scene *Scene) GetMeshIx(index int) (*gltf.Mesh, error)
- func (scene *Scene) GetMeshPrimitives(index int) ([]*gltf.MeshPrimitive, error)
- func (scene *Scene) GetMeshes() []*gltf.Mesh
- func (scene *Scene) GetNodeChildren(index int) ([]int, error)
- func (scene *Scene) GetNodeIx(index int) (*gltf.Node, error)
- func (scene *Scene) GetNodes() []*gltf.Node
- func (scene *Scene) GetSamplerIx(index int) (*gltf.Sampler, error)
- func (scene *Scene) GetSamplers() []*gltf.Sampler
- func (scene *Scene) GetSceneIx(index int) (*gltf.Scene, error)
- func (scene *Scene) GetScenes() []*gltf.Scene
- func (scene *Scene) GetTextures() []*gltf.Texture
- func (scene *Scene) ImportGLTF() error
- func (scene *Scene) Info() error
- func (scene *Scene) LoadURIBuffer(uri string, bufferIndex int, bufferLength int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scene ¶
func (*Scene) ExportGLTF ¶
ExportGLTF () marshals scene graph of the GLTF node object
func (*Scene) GetAccessorBufferView ¶
func (scene *Scene) GetAccessorBufferView(accessor_index int) (*gltf.Accessor, *gltf.BufferView, error)
GetAccessorBufferView returns and accessor and its associated buffer view as a tuple + the error state Error states return empty objects
func (*Scene) GetAccessorIx ¶
GetSceneIx gets the scene object at the specified index
func (*Scene) GetAccessors ¶
func (*Scene) GetBufferDataIx ¶
GetBufferDataIx gets the Buffer Views data reference as a slice pointer
func (*Scene) GetBufferIx ¶
GetBufferIx gets the buffer descr at the specified index - note this isn't the actual scene buffer data storage component just the description with the URI/Bytelengths
func (*Scene) GetBufferViewIx ¶
func (scene *Scene) GetBufferViewIx(index int) (*gltf.BufferView, error)
GetBufferViewIx gets the buffer descr at the specified index - note this isn't the actual scene buffer data storage component just the description with the URI/Bytelengths
func (*Scene) GetBufferViews ¶
func (scene *Scene) GetBufferViews() []*gltf.BufferView
GetBufferViews gets the list of buffer views
func (*Scene) GetBuffers ¶
GetBuffers returns list of buffers associated with scene
func (*Scene) GetDefaultScene ¶
GetScene () gets default scene node
func (*Scene) GetMaterials ¶
func (*Scene) GetMeshIx ¶
GetBufferIx gets the buffer descr at the specified index - note this isn't the actual scene buffer data storage component just the description with the URI/Bytelengths
func (*Scene) GetMeshPrimitives ¶
func (scene *Scene) GetMeshPrimitives(index int) ([]*gltf.MeshPrimitive, error)
GetBufferIx gets the buffer descr at the specified index - note this isn't the actual scene buffer data storage component just the description with the URI/Bytelengths
func (*Scene) GetSamplers ¶
func (*Scene) GetSceneIx ¶
GetSceneIx gets the scene object at the specified index
func (*Scene) GetTextures ¶
GetScenes get the scene array
func (*Scene) ImportGLTF ¶
ImportGLTF () reads scene graph of the GLTF node object and sets up a few properties for the scene such as the camera and Buffers