Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + const ARRAY_BUFFER + const BYTE + const CLAMP_TO_EDGE + const ELEMENT_ARRAY_BUFFER + const FLOAT + const GLBBin + const GLBJson + const GLBMagic + const KhrDracoMeshCompression + const KhrMaterialsCommon + const KhrMaterialsPbrSpecularGlossiness + const KhrMaterialsUnlit + const LINEAR + const LINEAR_MIPMAP_LINEAR + const LINEAR_MIPMAP_NEAREST + const LINES + const LINE_LOOP + const LINE_STRIP + const MAT2 + const MAT3 + const MAT4 + const MIRRORED_REPEAT + const NEAREST + const NEAREST_MIPMAP_LINEAR + const NEAREST_MIPMAP_NEAREST + const POINTS + const REPEAT + const SCALAR + const SHORT + const TRIANGLES + const TRIANGLE_FAN + const TRIANGLE_STRIP + const UNSIGNED_BYTE + const UNSIGNED_INT + const UNSIGNED_SHORT + const VEC2 + const VEC3 + const VEC4 + var AttributeName = map[string]gls.AttribType + var TypeSizes = map[string]int + type Accessor struct + BufferView *int + ByteOffset *int + ComponentType int + Count int + Extensions map[string]interface{} + Extras interface{} + Max []float32 + Min []float32 + Name string + Normalized bool + Sparse *Sparse + Type string + type Animation struct + Channels []Channel + Extensions map[string]interface{} + Extras interface{} + Name string + Samplers []AnimationSampler + type AnimationSampler struct + Extensions map[string]interface{} + Extras interface{} + Input int + Interpolation string + Output int + type Asset struct + Copyright string + Extensions map[string]interface{} + Extras interface{} + Generator string + MinVersion string + Version string + type Buffer struct + ByteLength int + Extensions map[string]interface{} + Extras interface{} + Name string + Uri string + type BufferView struct + Buffer int + ByteLength int + ByteOffset *int + ByteStride *int + Extensions map[string]interface{} + Extras interface{} + Name string + Target *int + type Camera struct + Extensions map[string]interface{} + Extras interface{} + Name string + Orthographic *Orthographic + Perspective *Perspective + Type string + type Channel struct + Extensions map[string]interface{} + Extras interface{} + Sampler int + Target Target + type GLB struct + Data GLBChunk + Header GLBHeader + JSON GLBChunk + type GLBChunk struct + Length uint32 + Type uint32 + type GLBHeader struct + Length uint32 + Magic uint32 + Version uint32 + type GLTF struct + Accessors []Accessor + Animations []Animation + Asset Asset + BufferViews []BufferView + Buffers []Buffer + Cameras []Camera + Extensions map[string]interface{} + ExtensionsRequired []string + ExtensionsUsed []string + Extras interface{} + Images []Image + Materials []Material + Meshes []Mesh + Nodes []Node + Samplers []Sampler + Scene *int + Scenes []Scene + Skins []Skin + Textures []Texture + func ParseBin(filename string) (*GLTF, error) + func ParseBinReader(r io.Reader, path string) (*GLTF, error) + func ParseJSON(filename string) (*GLTF, error) + func ParseJSONReader(r io.Reader, path string) (*GLTF, error) + func (g *GLTF) LoadAnimation(animIdx int) (*animation.Animation, error) + func (g *GLTF) LoadAnimationByName(animName string) (*animation.Animation, error) + func (g *GLTF) LoadCamera(camIdx int) (core.INode, error) + func (g *GLTF) LoadImage(imgIdx int) (*image.RGBA, error) + func (g *GLTF) LoadMaterial(matIdx int) (material.IMaterial, error) + func (g *GLTF) LoadMesh(meshIdx int) (core.INode, error) + func (g *GLTF) LoadNode(nodeIdx int) (core.INode, error) + func (g *GLTF) LoadScene(sceneIdx int) (core.INode, error) + func (g *GLTF) LoadSkin(skinIdx int) (*graphic.Skeleton, error) + func (g *GLTF) LoadTexture(texIdx int) (*texture.Texture2D, error) + type Image struct + BufferView *int + Extensions map[string]interface{} + Extras interface{} + MimeType string + Name string + Uri string + type Indices struct + BufferView int + ByteOffset int + ComponentType int + Extensions map[string]interface{} + Extras interface{} + type Material struct + AlphaCutoff float32 + AlphaMode string + DoubleSided bool + EmissiveFactor *[3]float32 + EmissiveTexture *TextureInfo + Extensions map[string]interface{} + Extras interface{} + Name string + NormalTexture *NormalTextureInfo + OcclusionTexture *OcclusionTextureInfo + PbrMetallicRoughness *PbrMetallicRoughness + type Mesh struct + Extensions map[string]interface{} + Extras interface{} + Name string + Primitives []Primitive + Weights []float32 + type Node struct + Camera *int + Children []int + Extensions map[string]interface{} + Extras interface{} + Matrix *[16]float32 + Mesh *int + Name string + Rotation *[4]float32 + Scale *[3]float32 + Skin *int + Translation *[3]float32 + Weights []float32 + type NormalTextureInfo struct + Extensions map[string]interface{} + Extras interface{} + Index int + Scale float32 + TexCoord int + type OcclusionTextureInfo struct + Extensions map[string]interface{} + Extras interface{} + Index int + Strength float32 + TexCoord int + type Orthographic struct + Extensions map[string]interface{} + Extras interface{} + Xmag float32 + Ymag float32 + Zfar float32 + Znear float32 + type PbrMetallicRoughness struct + BaseColorFactor *[4]float32 + BaseColorTexture *TextureInfo + Extensions map[string]interface{} + Extras interface{} + MetallicFactor *float32 + MetallicRoughnessTexture *TextureInfo + RoughnessFactor *float32 + type Perspective struct + AspectRatio *float32 + Extensions map[string]interface{} + Extras interface{} + Yfov float32 + Zfar *float32 + Znear float32 + type Primitive struct + Attributes map[string]int + Extensions map[string]interface{} + Extras interface{} + Indices *int + Material *int + Mode *int + Targets []map[string]int + type Sampler struct + Extensions map[string]interface{} + Extras interface{} + MagFilter *int + MinFilter *int + Name string + WrapS *int + WrapT *int + type Scene struct + Extensions map[string]interface{} + Extras interface{} + Name string + Nodes []int + type Skin struct + Extensions map[string]interface{} + Extras interface{} + InverseBindMatrices int + Joints []int + Name string + Skeleton *int + type Sparse struct + Count int + Extensions map[string]interface{} + Extras interface{} + Indices []int + Values []int + type Target struct + Extensions map[string]interface{} + Extras interface{} + Node int + Path string + type Texture struct + Extensions map[string]interface{} + Extras interface{} + Name string + Sampler *int + Source int + type TextureInfo struct + Extensions map[string]interface{} + Extras interface{} + Index int + TexCoord int + type Values struct + BufferView int + ByteOffset int + Extensions map[string]interface{} + Extras interface{}