Scene flags+start material import

This commit is contained in:
bloeys
2021-11-19 13:27:31 +04:00
parent fb9d44beca
commit 672802a705
3 changed files with 225 additions and 5 deletions

View File

@ -24,9 +24,6 @@ import (
type Node struct {
}
type Material struct {
}
type Animation struct {
}
@ -43,6 +40,8 @@ type Metadata struct {
}
type Scene struct {
Flags SceneFlag
RootNode *Node
Meshes []*Mesh
Materials []*Material
@ -73,6 +72,7 @@ func getAiErr() error {
func parseScene(cs *C.struct_aiScene) *Scene {
s := &Scene{}
s.Flags = SceneFlag(cs.mFlags)
s.Meshes = parseMeshes(cs.mMeshes, uint(cs.mNumMeshes))
return s