Documentation ¶
Index ¶
- Constants
- func AttachLogStream(stream LogStream)
- func DetachAllLogStreams()
- func EnableVerboseLogging(d bool)
- func GetErrorString() string
- func GetExtensionList() string
- func IsExtensionSupported(extension string) bool
- type AnimBehaviour
- type AnimMesh
- func (mesh *AnimMesh) Bitangents() []Vector3
- func (mesh *AnimMesh) BitangentsPtr() *Vector3
- func (mesh *AnimMesh) Colors(pIndex int) []Color4
- func (mesh *AnimMesh) ColorsPtr(pIndex int) *Color4
- func (mesh *AnimMesh) HasNormals() bool
- func (mesh *AnimMesh) HasPositions() bool
- func (mesh *AnimMesh) HasTangentsAndBitangents() bool
- func (mesh *AnimMesh) HasTextureCoords(pIndex int) bool
- func (mesh *AnimMesh) HasVertexColors(pIndex int) bool
- func (mesh *AnimMesh) Normals() []Vector3
- func (mesh *AnimMesh) NormalsPtr() *Vector3
- func (mesh *AnimMesh) Tangents() []Vector3
- func (mesh *AnimMesh) TangentsPtr() *Vector3
- func (mesh *AnimMesh) TextureCoords(pIndex int) []Color4
- func (mesh *AnimMesh) TextureCoordsPtr(pIndex int) *Vector3
- func (mesh *AnimMesh) Vertices() []Vector3
- func (mesh *AnimMesh) VerticesPtr() *Vector3
- type Animation
- func (this *Animation) Channels() []*NodeAnim
- func (this *Animation) Duration() float64
- func (this *Animation) MeshChannels() []*MeshAnim
- func (this *Animation) Name() string
- func (this *Animation) NumChannels() int
- func (this *Animation) NumMeshChannels() int
- func (this *Animation) TicksPerSecond() float64
- type BlendMode
- type Bone
- type Camera
- func (cam *Camera) Aspect() float32
- func (cam *Camera) ClipPlaneFar() float32
- func (cam *Camera) ClipPlaneNear() float32
- func (cam *Camera) HorizontalFov() float32
- func (cam *Camera) LookAt() Vector3
- func (cam *Camera) Name() string
- func (cam *Camera) Position() Vector3
- func (cam *Camera) Up() Vector3
- type Color3
- type Color4
- type DefaultLogStream
- type Face
- type Light
- func (l *Light) AngleInnerCone() float32
- func (l *Light) AngleOuterCone() float32
- func (l *Light) AttenuationConstant() float32
- func (l *Light) AttenuationLinear() float32
- func (l *Light) AttenuationQuadratic() float32
- func (l *Light) ColorAmbient() Color3
- func (l *Light) ColorDiffuse() Color3
- func (l *Light) ColorSpecular() Color3
- func (l *Light) Direction() Vector3
- func (l *Light) Name() string
- func (l *Light) Position() Vector3
- func (l *Light) Type() LightSourceType
- type LightSourceType
- type LogStream
- type MatKey
- type Material
- func (m *Material) GetMaterialColor(key MatKey, typ TextureType, textureIndex int) (Color4, Return)
- func (m *Material) GetMaterialFloat(key MatKey, typ TextureType, textureIndex int) (float32, Return)
- func (m *Material) GetMaterialFloatArray(key MatKey, typ TextureType, textureIndex int, pOut []float32) Return
- func (m *Material) GetMaterialInteger(key MatKey, typ TextureType, textureIndex int) (int, Return)
- func (m *Material) GetMaterialIntegerArray(key MatKey, typ TextureType, textureIndex int, pOut []int32) Return
- func (m *Material) GetMaterialProperty(key MatKey, typ TextureType, textureIndex int) (*MaterialProperty, Return)
- func (m *Material) GetMaterialString(key MatKey, typ TextureType, textureIndex int) (string, Return)
- func (m *Material) GetMaterialTexture(typ TextureType, textureIndex int) (string, TextureMapping, int, float32, TextureOp, TextureMapMode, uint, Return)
- func (m *Material) GetMaterialTextureCount(typ TextureType) int
- func (m *Material) NumAllocated() int
- func (m *Material) NumProperties() int
- func (m *Material) Properties() []MaterialProperty
- type MaterialProperty
- type Matrix3x3
- type Matrix4x4
- type MemoryInfo
- type Mesh
- func (mesh *Mesh) AnimMeshes() []*AnimMesh
- func (mesh *Mesh) Bitangents() []Vector3
- func (mesh *Mesh) Bones() []*Bone
- func (mesh *Mesh) Colors(pIndex int) []Color4
- func (mesh *Mesh) Faces() []Face
- func (mesh *Mesh) MaterialIndex() int
- func (mesh *Mesh) Name() string
- func (mesh *Mesh) Normals() []Vector3
- func (mesh *Mesh) NumAnimMeshes() int
- func (mesh *Mesh) NumBones() int
- func (mesh *Mesh) NumFaces() int
- func (mesh *Mesh) NumUvComponents(pIndex int) int
- func (mesh *Mesh) NumVertices() int
- func (mesh *Mesh) PrimitiveTypes() int
- func (mesh *Mesh) Tangents() []Vector3
- func (mesh *Mesh) TextureCoords(pIndex int) []Vector3
- func (mesh *Mesh) Vertices() []Vector3
- type MeshAnim
- type MeshKey
- type Node
- type NodeAnim
- func (this *NodeAnim) Name() string
- func (this *NodeAnim) NumPositionKeys() int
- func (this *NodeAnim) NumRotationKeys() int
- func (this *NodeAnim) NumScalingKeys() int
- func (this *NodeAnim) PositionKeys() []VectorKey
- func (this *NodeAnim) PostState() AnimBehaviour
- func (this *NodeAnim) PreState() AnimBehaviour
- func (this *NodeAnim) RotationKeys() []QuatKey
- func (this *NodeAnim) ScalingKeys() []VectorKey
- type Origin
- type Plane
- type PostProcessSteps
- type PrimitiveType
- type PropertyStore
- type PropertyTypeInfo
- type QuatKey
- type Quaternion
- type Ray
- type Return
- type Scene
- func (this *Scene) Animations() []*Animation
- func (scene *Scene) ApplyPostProcessing(flags PostProcessSteps) *Scene
- func (this *Scene) Cameras() []*Camera
- func (this *Scene) Flags() uint
- func (scene *Scene) GetMemoryRequirements() MemoryInfo
- func (this *Scene) Lights() []*Light
- func (this *Scene) Materials() []*Material
- func (this *Scene) Meshes() []*Mesh
- func (this *Scene) NumAnimations() int
- func (this *Scene) NumCameras() int
- func (this *Scene) NumLights() int
- func (this *Scene) NumMaterials() int
- func (this *Scene) NumMeshes() int
- func (this *Scene) NumTextures() int
- func (scene *Scene) ReleaseImport()
- func (this *Scene) RootNode() *Node
- func (this *Scene) Textures() []*Texture
- type ShadingMode
- type Texel
- type Texture
- type TextureFlags
- type TextureMapMode
- type TextureMapping
- type TextureOp
- type TextureType
- type UvTransform
- type Vector2
- type Vector3
- type VectorKey
- type VertexWeight
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 ¶
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 (*AnimMesh) BitangentsPtr ¶
func (*AnimMesh) HasNormals ¶
* Check whether the anim mesh overrides the vertex normals
- of its host mesh
func (*AnimMesh) HasPositions ¶
* Check whether the anim mesh overrides the vertex positions
- of its host mesh
func (*AnimMesh) HasTangentsAndBitangents ¶
* 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 ¶
* 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 ¶
* 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) NormalsPtr ¶
func (*AnimMesh) TangentsPtr ¶
func (*AnimMesh) TextureCoords ¶
func (*AnimMesh) TextureCoordsPtr ¶
func (*AnimMesh) VerticesPtr ¶
type Animation ¶
type Animation C.struct_aiAnimation
func (*Animation) MeshChannels ¶
func (*Animation) NumChannels ¶
func (*Animation) NumMeshChannels ¶
func (*Animation) TicksPerSecond ¶
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) NumWeights ¶
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) ClipPlaneFar ¶
func (*Camera) ClipPlaneNear ¶
func (*Camera) HorizontalFov ¶
type Color3 ¶
type Color3 C.struct_aiColor3D
type Color4 ¶
type Color4 C.struct_aiColor4D
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 (*Face) IndicesPtr ¶
func (*Face) NumIndices ¶
type Light ¶
type Light C.struct_aiLight
func (*Light) AngleInnerCone ¶
func (*Light) AngleOuterCone ¶
func (*Light) AttenuationConstant ¶
func (*Light) AttenuationLinear ¶
func (*Light) AttenuationQuadratic ¶
func (*Light) ColorAmbient ¶
func (*Light) ColorDiffuse ¶
func (*Light) ColorSpecular ¶
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 (*Material) GetMaterialFloat ¶
func (*Material) GetMaterialFloatArray ¶
func (*Material) GetMaterialInteger ¶
func (*Material) GetMaterialIntegerArray ¶
func (*Material) GetMaterialProperty ¶
func (m *Material) GetMaterialProperty(key MatKey, typ TextureType, textureIndex int) (*MaterialProperty, Return)
func (*Material) GetMaterialString ¶
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 (*Material) NumProperties ¶
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 ¶
func (mp *MaterialProperty) Type() PropertyTypeInfo
type Matrix3x3 ¶
type Matrix3x3 C.struct_aiMatrix3x3
type Matrix4x4 ¶
type Matrix4x4 C.struct_aiMatrix4x4
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) Bitangents ¶
func (*Mesh) MaterialIndex ¶
func (*Mesh) NumAnimMeshes ¶
func (*Mesh) NumUvComponents ¶
func (*Mesh) NumVertices ¶
func (*Mesh) PrimitiveTypes ¶
func (*Mesh) TextureCoords ¶
type MeshAnim ¶
type MeshAnim C.struct_aiMeshAnim
type MeshKey ¶
type MeshKey C.struct_aiMeshKey
type NodeAnim ¶
type NodeAnim C.struct_aiNodeAnim
func (*NodeAnim) NumPositionKeys ¶
func (*NodeAnim) NumRotationKeys ¶
func (*NodeAnim) NumScalingKeys ¶
func (*NodeAnim) PositionKeys ¶
func (*NodeAnim) PostState ¶
func (this *NodeAnim) PostState() AnimBehaviour
func (*NodeAnim) PreState ¶
func (this *NodeAnim) PreState() AnimBehaviour
func (*NodeAnim) RotationKeys ¶
func (*NodeAnim) ScalingKeys ¶
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
const ( PTI_Float PropertyTypeInfo = C.aiPTI_Float PTI_String PropertyTypeInfo = C.aiPTI_String PTI_Integer PropertyTypeInfo = C.aiPTI_Integer PTI_Buffer PropertyTypeInfo = C.aiPTI_Buffer )
type QuatKey ¶
type QuatKey C.struct_aiQuatKey
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) 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 ¶
type Scene ¶
type Scene C.struct_aiScene
func ImportFile ¶
func ImportFileFromMemoryWithProperties ¶
func ImportFileFromMemoryWithProperties(data []byte, flags uint, hint string, props *PropertyStore) *Scene
func (*Scene) Animations ¶
func (*Scene) ApplyPostProcessing ¶
func (scene *Scene) ApplyPostProcessing(flags PostProcessSteps) *Scene
func (*Scene) GetMemoryRequirements ¶
func (scene *Scene) GetMemoryRequirements() MemoryInfo
func (*Scene) NumAnimations ¶
func (*Scene) NumCameras ¶
func (*Scene) NumMaterials ¶
func (*Scene) NumTextures ¶
func (*Scene) ReleaseImport ¶
func (scene *Scene) ReleaseImport()
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
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
type Vector3 ¶
type Vector3 C.struct_aiVector3D
func (*Vector3) TransformByMatrix3 ¶
func (*Vector3) TransformByMatrix4 ¶
type VectorKey ¶
type VectorKey C.struct_aiVectorKey
type VertexWeight ¶
type VertexWeight C.struct_aiVertexWeight
func (VertexWeight) VertexId ¶
func (w VertexWeight) VertexId() uint
func (VertexWeight) Weight ¶
func (w VertexWeight) Weight() float32
Click to show internal directories.
Click to hide internal directories.