assimp

package module
v0.0.0-...-48b1e57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 4 Imported by: 0

README

assimp

go wrapper of Assimp

Documentation

Index

Constants

View Source
const (
	MaxFaceIndices           = C.AI_MAX_FACE_INDICES
	MaxBoneWeights           = C.AI_MAX_BONE_WEIGHTS
	MaxVertices              = C.AI_MAX_VERTICES
	MaxFaces                 = C.AI_MAX_FACES
	MaxNumberOfColorSets     = C.AI_MAX_NUMBER_OF_COLOR_SETS
	MaxNumberOfTextureCoords = C.AI_MAX_NUMBER_OF_TEXTURECOORDS
)
View Source
const (
	SceneFlags_Incomplete        = C.AI_SCENE_FLAGS_INCOMPLETE
	SceneFlags_Validated         = C.AI_SCENE_FLAGS_VALIDATED
	SceneFlags_ValidationWarning = C.AI_SCENE_FLAGS_VALIDATION_WARNING
	SceneFlags_NonVerboseFormat  = C.AI_SCENE_FLAGS_NON_VERBOSE_FORMAT
	SceneFlags_Terrain           = C.AI_SCENE_FLAGS_TERRAIN
)
View Source
const TextureTypeMax = C.AI_TEXTURE_TYPE_MAX

Variables

This section is empty.

Functions

func AttachLogStream

func AttachLogStream(stream LogStream)

func DetachAllLogStreams

func DetachAllLogStreams()

func EnableVerboseLogging

func EnableVerboseLogging(d bool)

func GetErrorString

func GetErrorString() string

func GetExtensionList

func GetExtensionList() string

func IsExtensionSupported

func IsExtensionSupported(extension string) bool

Types

type AnimBehaviour

type AnimBehaviour C.enum_aiAnimBehaviour
const (
	AnimBehaviour_Default  AnimBehaviour = C.aiAnimBehaviour_DEFAULT
	AnimBehaviour_Constant AnimBehaviour = C.aiAnimBehaviour_CONSTANT
	AnimBehaviour_Linear   AnimBehaviour = C.aiAnimBehaviour_LINEAR
	AnimBehaviour_Repeat   AnimBehaviour = C.aiAnimBehaviour_REPEAT
)

type AnimMesh

type AnimMesh C.struct_aiAnimMesh

func (*AnimMesh) Bitangents

func (mesh *AnimMesh) Bitangents() []Vector3

func (*AnimMesh) BitangentsPtr

func (mesh *AnimMesh) BitangentsPtr() *Vector3

func (*AnimMesh) Colors

func (mesh *AnimMesh) Colors(pIndex int) []Color4

func (*AnimMesh) ColorsPtr

func (mesh *AnimMesh) ColorsPtr(pIndex int) *Color4

func (*AnimMesh) HasNormals

func (mesh *AnimMesh) HasNormals() bool

* Check whether the anim mesh overrides the vertex normals

  • of its host mesh

func (*AnimMesh) HasPositions

func (mesh *AnimMesh) HasPositions() bool

* Check whether the anim mesh overrides the vertex positions

  • of its host mesh

func (*AnimMesh) HasTangentsAndBitangents

func (mesh *AnimMesh) HasTangentsAndBitangents() bool

* Check whether the anim mesh overrides the vertex tangents

  • and bitangents of its host mesh. As for aiMesh,
  • tangents and bitangents always go together.

func (*AnimMesh) HasTextureCoords

func (mesh *AnimMesh) HasTextureCoords(pIndex int) bool

* Check whether the anim mesh overrides a particular

  • set of texture coordinates on his host mesh.
  • @param pIndex 0<index<AI_MAX_NUMBER_OF_TEXTURECOORDS

func (*AnimMesh) HasVertexColors

func (mesh *AnimMesh) HasVertexColors(pIndex int) bool

* Check whether the anim mesh overrides a particular

  • set of vertex colors on his host mesh.
  • @param pIndex 0<index<AI_MAX_NUMBER_OF_COLOR_SETS

func (*AnimMesh) Normals

func (mesh *AnimMesh) Normals() []Vector3

func (*AnimMesh) NormalsPtr

func (mesh *AnimMesh) NormalsPtr() *Vector3

func (*AnimMesh) Tangents

func (mesh *AnimMesh) Tangents() []Vector3

func (*AnimMesh) TangentsPtr

func (mesh *AnimMesh) TangentsPtr() *Vector3

func (*AnimMesh) TextureCoords

func (mesh *AnimMesh) TextureCoords(pIndex int) []Color4

func (*AnimMesh) TextureCoordsPtr

func (mesh *AnimMesh) TextureCoordsPtr(pIndex int) *Vector3

func (*AnimMesh) Vertices

func (mesh *AnimMesh) Vertices() []Vector3

func (*AnimMesh) VerticesPtr

func (mesh *AnimMesh) VerticesPtr() *Vector3

type Animation

type Animation C.struct_aiAnimation

func (*Animation) Channels

func (this *Animation) Channels() []*NodeAnim

func (*Animation) Duration

func (this *Animation) Duration() float64

func (*Animation) MeshChannels

func (this *Animation) MeshChannels() []*MeshAnim

func (*Animation) Name

func (this *Animation) Name() string

func (*Animation) NumChannels

func (this *Animation) NumChannels() int

func (*Animation) NumMeshChannels

func (this *Animation) NumMeshChannels() int

func (*Animation) TicksPerSecond

func (this *Animation) TicksPerSecond() float64

type BlendMode

type BlendMode C.enum_aiBlendMode
const (
	BlendMode_Default  BlendMode = C.aiBlendMode_Default
	BlendMode_Additive BlendMode = C.aiBlendMode_Additive
)

type Bone

type Bone C.struct_aiBone

func (*Bone) Name

func (b *Bone) Name() string

func (*Bone) NumWeights

func (b *Bone) NumWeights() uint

func (*Bone) Weights

func (b *Bone) Weights() []VertexWeight

func (*Bone) WeightsPtr

func (b *Bone) WeightsPtr() *VertexWeight

type Camera

type Camera C.struct_aiCamera

func (*Camera) Aspect

func (cam *Camera) Aspect() float32

func (*Camera) ClipPlaneFar

func (cam *Camera) ClipPlaneFar() float32

func (*Camera) ClipPlaneNear

func (cam *Camera) ClipPlaneNear() float32

func (*Camera) HorizontalFov

func (cam *Camera) HorizontalFov() float32

func (*Camera) LookAt

func (cam *Camera) LookAt() Vector3

func (*Camera) Name

func (cam *Camera) Name() string

func (*Camera) Position

func (cam *Camera) Position() Vector3

func (*Camera) Up

func (cam *Camera) Up() Vector3

type Color3

type Color3 C.struct_aiColor3D

func (*Color3) B

func (c *Color3) B() float32

func (*Color3) G

func (c *Color3) G() float32

func (*Color3) R

func (c *Color3) R() float32

func (*Color3) Values

func (c *Color3) Values() [3]float32

type Color4

type Color4 C.struct_aiColor4D

func (*Color4) A

func (c *Color4) A() float32

func (*Color4) B

func (c *Color4) B() float32

func (*Color4) G

func (c *Color4) G() float32

func (*Color4) R

func (c *Color4) R() float32

func (*Color4) Values

func (c *Color4) Values() [4]float32

type DefaultLogStream

type DefaultLogStream C.enum_aiDefaultLogStream
const (
	DefaultLogStream_File     DefaultLogStream = C.aiDefaultLogStream_FILE
	DefaultLogStream_StdOut   DefaultLogStream = C.aiDefaultLogStream_STDOUT
	DefaultLogStream_StdErr   DefaultLogStream = C.aiDefaultLogStream_STDERR
	DefaultLogStream_Debugger DefaultLogStream = C.aiDefaultLogStream_DEBUGGER
)

type Face

type Face C.struct_aiFace

func (*Face) CopyIndices

func (f *Face) CopyIndices() []uint32

func (*Face) IndicesPtr

func (f *Face) IndicesPtr() *uint32

func (*Face) NumIndices

func (f *Face) NumIndices() uint32

type Light

type Light C.struct_aiLight

func NewLight

func NewLight() *Light

func (*Light) AngleInnerCone

func (l *Light) AngleInnerCone() float32

func (*Light) AngleOuterCone

func (l *Light) AngleOuterCone() float32

func (*Light) AttenuationConstant

func (l *Light) AttenuationConstant() float32

func (*Light) AttenuationLinear

func (l *Light) AttenuationLinear() float32

func (*Light) AttenuationQuadratic

func (l *Light) AttenuationQuadratic() float32

func (*Light) ColorAmbient

func (l *Light) ColorAmbient() Color3

func (*Light) ColorDiffuse

func (l *Light) ColorDiffuse() Color3

func (*Light) ColorSpecular

func (l *Light) ColorSpecular() Color3

func (*Light) Direction

func (l *Light) Direction() Vector3

func (*Light) Name

func (l *Light) Name() string

func (*Light) Position

func (l *Light) Position() Vector3

func (*Light) Type

func (l *Light) Type() LightSourceType

type LightSourceType

type LightSourceType C.enum_aiLightSourceType
const (
	LightSource_Undefined   LightSourceType = C.aiLightSource_UNDEFINED
	LightSource_Directional LightSourceType = C.aiLightSource_DIRECTIONAL
	LightSource_Point       LightSourceType = C.aiLightSource_POINT
	LightSource_Spot        LightSourceType = C.aiLightSource_SPOT
)

type LogStream

type LogStream interface {
	Log(message string)
}

func GetPredefinedLogStream

func GetPredefinedLogStream(streams DefaultLogStream, file string) LogStream

type MatKey

type MatKey string
const (
	MatKey_Name                  MatKey = "?mat.name\x00"
	MatKey_TwoSidid              MatKey = "$mat.twosided\x00"
	MatKey_ShadingModel          MatKey = "$mat.shadingm\x00"
	MatKey_EnableWireframe       MatKey = "$mat.wireframe\x00"
	MatKey_BlendFunc             MatKey = "$mat.blend\x00"
	MatKey_Opacity               MatKey = "$mat.opacity\x00"
	MatKey_BumpScaling           MatKey = "$mat.bumpscaling\x00"
	MatKey_Shininess             MatKey = "$mat.shininess\x00"
	MatKey_Reflectivity          MatKey = "$mat.reflectivity\x00"
	MatKey_ShininessStregth      MatKey = "$mat.shinpercent\x00"
	MatKey_Refracti              MatKey = "$mat.refracti\x00"
	MatKey_ColorDiffuse          MatKey = "$clr.diffuse\x00"
	MatKey_ColorAmbient          MatKey = "$clr.ambient\x00"
	MatKey_ColorSpecular         MatKey = "$clr.specular\x00"
	MatKey_ColorEmissive         MatKey = "$clr.emissive\x00"
	MatKey_ColorTransparent      MatKey = "$clr.transparent\x00"
	MatKey_ColorReflective       MatKey = "$clr.reflective\x00"
	MatKey_GlobalBackgroundImage MatKey = "?bg.global\x00"
)
const (
	MatKey_Texture      MatKey = C._AI_MATKEY_TEXTURE_BASE
	MatKey_UvwSrc       MatKey = C._AI_MATKEY_UVWSRC_BASE
	MatKey_TexOp        MatKey = C._AI_MATKEY_TEXOP_BASE
	MatKey_Mapping      MatKey = C._AI_MATKEY_MAPPING_BASE
	MatKey_TexBlend     MatKey = C._AI_MATKEY_TEXBLEND_BASE
	MatKey_MappingModeU MatKey = C._AI_MATKEY_MAPPINGMODE_U_BASE
	MatKey_MappingModeV MatKey = C._AI_MATKEY_MAPPINGMODE_V_BASE
	MatKey_TexMapAxis   MatKey = C._AI_MATKEY_TEXMAP_AXIS_BASE
	MatKey_UvTransform  MatKey = C._AI_MATKEY_UVTRANSFORM_BASE
	MatKey_TexFlags     MatKey = C._AI_MATKEY_TEXFLAGS_BASE
)

type Material

type Material C.struct_aiMaterial

func (*Material) GetMaterialColor

func (m *Material) GetMaterialColor(key MatKey, typ TextureType, textureIndex int) (Color4, Return)

func (*Material) GetMaterialFloat

func (m *Material) GetMaterialFloat(key MatKey, typ TextureType, textureIndex int) (float32, Return)

func (*Material) GetMaterialFloatArray

func (m *Material) GetMaterialFloatArray(key MatKey, typ TextureType, textureIndex int, pOut []float32) Return

func (*Material) GetMaterialInteger

func (m *Material) GetMaterialInteger(key MatKey, typ TextureType, textureIndex int) (int, Return)

func (*Material) GetMaterialIntegerArray

func (m *Material) GetMaterialIntegerArray(key MatKey, typ TextureType, textureIndex int, pOut []int32) Return

func (*Material) GetMaterialProperty

func (m *Material) GetMaterialProperty(key MatKey, typ TextureType, textureIndex int) (*MaterialProperty, Return)

func (*Material) GetMaterialString

func (m *Material) GetMaterialString(key MatKey, typ TextureType, textureIndex int) (string, Return)

func (*Material) GetMaterialTexture

func (m *Material) GetMaterialTexture(typ TextureType, textureIndex int) (string, TextureMapping, int, float32, TextureOp, TextureMapMode, uint, Return)

func (*Material) GetMaterialTextureCount

func (m *Material) GetMaterialTextureCount(typ TextureType) int

func (*Material) NumAllocated

func (m *Material) NumAllocated() int

func (*Material) NumProperties

func (m *Material) NumProperties() int

func (*Material) Properties

func (m *Material) Properties() []MaterialProperty

type MaterialProperty

type MaterialProperty C.struct_aiMaterialProperty

func (*MaterialProperty) Data

func (mp *MaterialProperty) Data() []byte

func (*MaterialProperty) DataLength

func (mp *MaterialProperty) DataLength() int

func (*MaterialProperty) Index

func (mp *MaterialProperty) Index() int

func (*MaterialProperty) Key

func (mp *MaterialProperty) Key() string

func (*MaterialProperty) Semantic

func (mp *MaterialProperty) Semantic() int

func (*MaterialProperty) Type

type Matrix3x3

type Matrix3x3 C.struct_aiMatrix3x3

func (*Matrix3x3) Identity

func (dst *Matrix3x3) Identity()

func (*Matrix3x3) Multiply

func (dst *Matrix3x3) Multiply(src *Matrix3x3)

func (*Matrix3x3) Transpose

func (mat *Matrix3x3) Transpose()

func (*Matrix3x3) Values

func (m *Matrix3x3) Values() [3][3]float32

type Matrix4x4

type Matrix4x4 C.struct_aiMatrix4x4

func (*Matrix4x4) Decompose

func (mat *Matrix4x4) Decompose(scaling *Vector3, rotation *Quaternion, position *Vector3)

func (*Matrix4x4) Identity

func (dst *Matrix4x4) Identity()

func (*Matrix4x4) Multiply

func (dst *Matrix4x4) Multiply(src *Matrix4x4)

func (*Matrix4x4) Transpose

func (mat *Matrix4x4) Transpose()

func (*Matrix4x4) Values

func (m *Matrix4x4) Values() [4][4]float32

type MemoryInfo

type MemoryInfo C.struct_aiMemoryInfo

func (*MemoryInfo) Animations

func (mi *MemoryInfo) Animations() uint

func (*MemoryInfo) Cameras

func (mi *MemoryInfo) Cameras() uint

func (*MemoryInfo) Lights

func (mi *MemoryInfo) Lights() uint

func (*MemoryInfo) Materials

func (mi *MemoryInfo) Materials() uint

func (*MemoryInfo) Meshes

func (mi *MemoryInfo) Meshes() uint

func (*MemoryInfo) Nodes

func (mi *MemoryInfo) Nodes() uint

func (*MemoryInfo) Textures

func (mi *MemoryInfo) Textures() uint

func (*MemoryInfo) Total

func (mi *MemoryInfo) Total() uint

type Mesh

type Mesh C.struct_aiMesh

func (*Mesh) AnimMeshes

func (mesh *Mesh) AnimMeshes() []*AnimMesh

func (*Mesh) Bitangents

func (mesh *Mesh) Bitangents() []Vector3

func (*Mesh) Bones

func (mesh *Mesh) Bones() []*Bone

func (*Mesh) Colors

func (mesh *Mesh) Colors(pIndex int) []Color4

func (*Mesh) Faces

func (mesh *Mesh) Faces() []Face

func (*Mesh) MaterialIndex

func (mesh *Mesh) MaterialIndex() int

func (*Mesh) Name

func (mesh *Mesh) Name() string

func (*Mesh) Normals

func (mesh *Mesh) Normals() []Vector3

func (*Mesh) NumAnimMeshes

func (mesh *Mesh) NumAnimMeshes() int

func (*Mesh) NumBones

func (mesh *Mesh) NumBones() int

func (*Mesh) NumFaces

func (mesh *Mesh) NumFaces() int

func (*Mesh) NumUvComponents

func (mesh *Mesh) NumUvComponents(pIndex int) int

func (*Mesh) NumVertices

func (mesh *Mesh) NumVertices() int

func (*Mesh) PrimitiveTypes

func (mesh *Mesh) PrimitiveTypes() int

func (*Mesh) Tangents

func (mesh *Mesh) Tangents() []Vector3

func (*Mesh) TextureCoords

func (mesh *Mesh) TextureCoords(pIndex int) []Vector3

func (*Mesh) Vertices

func (mesh *Mesh) Vertices() []Vector3

type MeshAnim

type MeshAnim C.struct_aiMeshAnim

func (*MeshAnim) Keys

func (this *MeshAnim) Keys() []MeshKey

func (*MeshAnim) Name

func (this *MeshAnim) Name() string

func (*MeshAnim) NumKeys

func (this *MeshAnim) NumKeys() int

type MeshKey

type MeshKey C.struct_aiMeshKey

func (MeshKey) Time

func (this MeshKey) Time() float64

func (MeshKey) Value

func (this MeshKey) Value() int

type Node

type Node C.struct_aiNode

func (*Node) Children

func (this *Node) Children() []*Node

func (*Node) Meshes

func (this *Node) Meshes() []int32

func (*Node) Name

func (this *Node) Name() string

func (*Node) NumChildren

func (this *Node) NumChildren() int

func (*Node) NumMeshes

func (this *Node) NumMeshes() int

func (*Node) Parent

func (this *Node) Parent() *Node

func (*Node) Transformation

func (this *Node) Transformation() Matrix4x4

type NodeAnim

type NodeAnim C.struct_aiNodeAnim

func (*NodeAnim) Name

func (this *NodeAnim) Name() string

func (*NodeAnim) NumPositionKeys

func (this *NodeAnim) NumPositionKeys() int

func (*NodeAnim) NumRotationKeys

func (this *NodeAnim) NumRotationKeys() int

func (*NodeAnim) NumScalingKeys

func (this *NodeAnim) NumScalingKeys() int

func (*NodeAnim) PositionKeys

func (this *NodeAnim) PositionKeys() []VectorKey

func (*NodeAnim) PostState

func (this *NodeAnim) PostState() AnimBehaviour

func (*NodeAnim) PreState

func (this *NodeAnim) PreState() AnimBehaviour

func (*NodeAnim) RotationKeys

func (this *NodeAnim) RotationKeys() []QuatKey

func (*NodeAnim) ScalingKeys

func (this *NodeAnim) ScalingKeys() []VectorKey

type Origin

type Origin C.enum_aiOrigin
const (
	Origin_Set Origin = C.aiOrigin_SET
	Origin_Cur Origin = C.aiOrigin_CUR
	Origin_End Origin = C.aiOrigin_END
)

type Plane

type Plane C.struct_aiPlane

type PostProcessSteps

type PostProcessSteps C.enum_aiPostProcessSteps
const (
	Process_CalcTangentSpace                PostProcessSteps = C.aiProcess_CalcTangentSpace
	Process_JoinIdenticalVertices           PostProcessSteps = C.aiProcess_JoinIdenticalVertices
	Process_MakeLeftHanded                  PostProcessSteps = C.aiProcess_MakeLeftHanded
	Process_Triangulate                     PostProcessSteps = C.aiProcess_Triangulate
	Process_RemoveComponent                 PostProcessSteps = C.aiProcess_RemoveComponent
	Process_GenNormals                      PostProcessSteps = C.aiProcess_GenNormals
	Process_GenSmoothNormals                PostProcessSteps = C.aiProcess_GenSmoothNormals
	Process_SplitLargeMeshes                PostProcessSteps = C.aiProcess_SplitLargeMeshes
	Process_PreTransformVertices            PostProcessSteps = C.aiProcess_PreTransformVertices
	Process_LimitBoneWeights                PostProcessSteps = C.aiProcess_LimitBoneWeights
	Process_ValidateDataStructure           PostProcessSteps = C.aiProcess_ValidateDataStructure
	Process_ImproveCacheLocality            PostProcessSteps = C.aiProcess_ImproveCacheLocality
	Process_RemoveRedundantMaterials        PostProcessSteps = C.aiProcess_RemoveRedundantMaterials
	Process_FixInfacingNormals              PostProcessSteps = C.aiProcess_FixInfacingNormals
	Process_SortByPType                     PostProcessSteps = C.aiProcess_SortByPType
	Process_FindDegenerates                 PostProcessSteps = C.aiProcess_FindDegenerates
	Process_FindInvalidData                 PostProcessSteps = C.aiProcess_FindInvalidData
	Process_GenUVCoords                     PostProcessSteps = C.aiProcess_GenUVCoords
	Process_TransformUVCoords               PostProcessSteps = C.aiProcess_TransformUVCoords
	Process_FindInstances                   PostProcessSteps = C.aiProcess_FindInstances
	Process_OptimizeMeshes                  PostProcessSteps = C.aiProcess_OptimizeMeshes
	Process_OptimizeGraph                   PostProcessSteps = C.aiProcess_OptimizeGraph
	Process_FlipUVs                         PostProcessSteps = C.aiProcess_FlipUVs
	Process_FlipWindingOrder                PostProcessSteps = C.aiProcess_FlipWindingOrder
	Process_SplitByBoneCount                PostProcessSteps = C.aiProcess_SplitByBoneCount
	Process_Debone                          PostProcessSteps = C.aiProcess_Debone
	Process_ConvertToLeftHanded             PostProcessSteps = C.aiProcess_ConvertToLeftHanded
	ProcessPreset_TargetRealtime_Fast       PostProcessSteps = C.aiProcessPreset_TargetRealtime_Fast
	ProcessPreset_TargetRealtime_Quality    PostProcessSteps = C.aiProcessPreset_TargetRealtime_Quality
	ProcessPreset_TargetRealtime_MaxQuality PostProcessSteps = C.aiProcessPreset_TargetRealtime_MaxQuality
)

type PrimitiveType

type PrimitiveType C.enum_aiPrimitiveType
const (
	PrimitiveType_Point    PrimitiveType = C.aiPrimitiveType_POINT
	PrimitiveType_Line     PrimitiveType = C.aiPrimitiveType_LINE
	PrimitiveType_Triangle PrimitiveType = C.aiPrimitiveType_TRIANGLE
	PrimitiveType_Polygon  PrimitiveType = C.aiPrimitiveType_POLYGON
)

type PropertyStore

type PropertyStore C.struct_aiPropertyStore

func CreatePropertyStore

func CreatePropertyStore() *PropertyStore

func (*PropertyStore) Release

func (p *PropertyStore) Release()

func (*PropertyStore) SetPropertyFloat

func (p *PropertyStore) SetPropertyFloat(name string, value float32)

func (*PropertyStore) SetPropertyInteger

func (p *PropertyStore) SetPropertyInteger(name string, value int)

func (*PropertyStore) SetPropertyString

func (p *PropertyStore) SetPropertyString(name string, value string)

type PropertyTypeInfo

type PropertyTypeInfo C.enum_aiPropertyTypeInfo

type QuatKey

type QuatKey C.struct_aiQuatKey

func (QuatKey) Time

func (this QuatKey) Time() float64

func (QuatKey) Value

func (this QuatKey) Value() Quaternion

type Quaternion

type Quaternion C.struct_aiQuaternion

func (*Quaternion) FromMatrix

func (quat *Quaternion) FromMatrix(mat *Matrix3x3)

func (*Quaternion) Values

func (q *Quaternion) Values() [4]float32

order w,x,y,z

func (*Quaternion) W

func (v *Quaternion) W() float32

func (*Quaternion) X

func (v *Quaternion) X() float32

func (*Quaternion) Y

func (v *Quaternion) Y() float32

func (*Quaternion) Z

func (v *Quaternion) Z() float32

type Ray

type Ray C.struct_aiRay

type Return

type Return C.enum_aiReturn
const (
	Return_Success     Return = C.aiReturn_SUCCESS
	Return_Failure     Return = C.aiReturn_FAILURE
	Return_OutOfMemory Return = C.aiReturn_OUTOFMEMORY
)

func DetachLogStream

func DetachLogStream(stream LogStream) Return

type Scene

type Scene C.struct_aiScene

func ImportFile

func ImportFile(file string, flags uint) *Scene

func ImportFileFromMemory

func ImportFileFromMemory(data []byte, flags uint, hint string) *Scene

func ImportFileFromMemoryWithProperties

func ImportFileFromMemoryWithProperties(data []byte, flags uint, hint string, props *PropertyStore) *Scene

func (*Scene) Animations

func (this *Scene) Animations() []*Animation

func (*Scene) ApplyPostProcessing

func (scene *Scene) ApplyPostProcessing(flags PostProcessSteps) *Scene

func (*Scene) Cameras

func (this *Scene) Cameras() []*Camera

func (*Scene) Flags

func (this *Scene) Flags() uint

func (*Scene) GetMemoryRequirements

func (scene *Scene) GetMemoryRequirements() MemoryInfo

func (*Scene) Lights

func (this *Scene) Lights() []*Light

func (*Scene) Materials

func (this *Scene) Materials() []*Material

func (*Scene) Meshes

func (this *Scene) Meshes() []*Mesh

func (*Scene) NumAnimations

func (this *Scene) NumAnimations() int

func (*Scene) NumCameras

func (this *Scene) NumCameras() int

func (*Scene) NumLights

func (this *Scene) NumLights() int

func (*Scene) NumMaterials

func (this *Scene) NumMaterials() int

func (*Scene) NumMeshes

func (this *Scene) NumMeshes() int

func (*Scene) NumTextures

func (this *Scene) NumTextures() int

func (*Scene) ReleaseImport

func (scene *Scene) ReleaseImport()

func (*Scene) RootNode

func (this *Scene) RootNode() *Node

func (*Scene) Textures

func (this *Scene) Textures() []*Texture

type ShadingMode

type ShadingMode C.enum_aiShadingMode
const (
	ShadingMode_Flat         ShadingMode = C.aiShadingMode_Flat
	ShadingMode_Gouraud      ShadingMode = C.aiShadingMode_Gouraud
	ShadingMode_Phong        ShadingMode = C.aiShadingMode_Phong
	ShadingMode_Blinn        ShadingMode = C.aiShadingMode_Blinn
	ShadingMode_Tonn         ShadingMode = C.aiShadingMode_Toon
	ShadingMode_OrenNayar    ShadingMode = C.aiShadingMode_OrenNayar
	ShadingMode_Minnaert     ShadingMode = C.aiShadingMode_Minnaert
	ShadingMode_CookTorrance ShadingMode = C.aiShadingMode_CookTorrance
	ShadingMode_NoShading    ShadingMode = C.aiShadingMode_NoShading
	ShadingMode_Fresnel      ShadingMode = C.aiShadingMode_Fresnel
)

type Texel

type Texel C.struct_aiTexel

type Texture

type Texture C.struct_aiTexture

func (*Texture) Data

func (t *Texture) Data() *Texel

func (*Texture) Height

func (t *Texture) Height() uint32

func (*Texture) Width

func (t *Texture) Width() uint32

type TextureFlags

type TextureFlags C.enum_aiTextureFlags
const (
	TextureFlags_Invert      TextureFlags = C.aiTextureFlags_Invert
	TextureFlags_UseAlpha    TextureFlags = C.aiTextureFlags_UseAlpha
	TextureFlags_IgnoreAlpha TextureFlags = C.aiTextureFlags_IgnoreAlpha
)

type TextureMapMode

type TextureMapMode C.enum_aiTextureMapMode
const (
	TextureMapMode_Wrap   TextureMapMode = C.aiTextureMapMode_Wrap
	TextureMapMode_Clamp  TextureMapMode = C.aiTextureMapMode_Clamp
	TextureMapMode_Decal  TextureMapMode = C.aiTextureMapMode_Decal
	TextureMapMode_Mirror TextureMapMode = C.aiTextureMapMode_Mirror
)

type TextureMapping

type TextureMapping C.enum_aiTextureMapping
const (
	TextureMapping_Uv       TextureMapping = C.aiTextureMapping_UV
	TextureMapping_Spere    TextureMapping = C.aiTextureMapping_SPHERE
	TextureMapping_Cylinder TextureMapping = C.aiTextureMapping_CYLINDER
	TextureMapping_Box      TextureMapping = C.aiTextureMapping_BOX
	TextureMapping_Plane    TextureMapping = C.aiTextureMapping_PLANE
	TextureMapping_Other    TextureMapping = C.aiTextureMapping_OTHER
)
const (
	TextureMapping_None         TextureMapping = C.aiTextureType_NONE
	TextureMapping_Diffuse      TextureMapping = C.aiTextureType_DIFFUSE
	TextureMapping_Specular     TextureMapping = C.aiTextureType_SPECULAR
	TextureMapping_Ambient      TextureMapping = C.aiTextureType_AMBIENT
	TextureMapping_Emissive     TextureMapping = C.aiTextureType_EMISSIVE
	TextureMapping_Height       TextureMapping = C.aiTextureType_HEIGHT
	TextureMapping_Normals      TextureMapping = C.aiTextureType_NORMALS
	TextureMapping_Shininess    TextureMapping = C.aiTextureType_SHININESS
	TextureMapping_Opacity      TextureMapping = C.aiTextureType_OPACITY
	TextureMapping_Displacement TextureMapping = C.aiTextureType_DISPLACEMENT
	TextureMapping_Lightmap     TextureMapping = C.aiTextureType_LIGHTMAP
	TextureMapping_Reflection   TextureMapping = C.aiTextureType_REFLECTION
	TextureMapping_Unknown      TextureMapping = C.aiTextureType_UNKNOWN
)

type TextureOp

type TextureOp C.enum_aiTextureOp
const (
	TextureOp_Multiply  TextureOp = C.aiTextureOp_Multiply
	TextureOp_Add       TextureOp = C.aiTextureOp_Add
	TextureOp_Subtract  TextureOp = C.aiTextureOp_Subtract
	TextureOp_Divide    TextureOp = C.aiTextureOp_Divide
	TextureOp_SmoothAdd TextureOp = C.aiTextureOp_SmoothAdd
	TextureOp_SignedAdd TextureOp = C.aiTextureOp_SignedAdd
)

type TextureType

type TextureType C.enum_aiTextureType

type UvTransform

type UvTransform C.struct_aiUVTransform

func (UvTransform) Rotation

func (tf UvTransform) Rotation() float32

func (UvTransform) Scaling

func (tf UvTransform) Scaling() Vector2

func (UvTransform) Translation

func (tf UvTransform) Translation() Vector2

type Vector2

type Vector2 C.struct_aiVector2D

func (*Vector2) Values

func (v *Vector2) Values() [2]float32

func (*Vector2) X

func (v *Vector2) X() float32

func (*Vector2) Y

func (v *Vector2) Y() float32

type Vector3

type Vector3 C.struct_aiVector3D

func (*Vector3) TransformByMatrix3

func (vec *Vector3) TransformByMatrix3(mat *Matrix3x3)

func (*Vector3) TransformByMatrix4

func (vec *Vector3) TransformByMatrix4(mat *Matrix4x4)

func (*Vector3) Values

func (v *Vector3) Values() [3]float32

func (*Vector3) X

func (v *Vector3) X() float32

func (*Vector3) Y

func (v *Vector3) Y() float32

func (*Vector3) Z

func (v *Vector3) Z() float32

type VectorKey

type VectorKey C.struct_aiVectorKey

func (VectorKey) Time

func (this VectorKey) Time() float64

func (VectorKey) Value

func (this VectorKey) Value() Vector3

type VertexWeight

type VertexWeight C.struct_aiVertexWeight

func (VertexWeight) VertexId

func (w VertexWeight) VertexId() uint

func (VertexWeight) Weight

func (w VertexWeight) Weight() float32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL