mirror of
https://github.com/bloeys/assimp-go.git
synced 2025-12-29 08:28:20 +00:00
53 lines
1.2 KiB
Go
Executable File
53 lines
1.2 KiB
Go
Executable File
package asig
|
|
|
|
type Material struct {
|
|
|
|
/** List of all material properties loaded. */
|
|
Properties []*MaterialProperty
|
|
|
|
/** Storage allocated */
|
|
NumAllocated uint
|
|
}
|
|
|
|
type MaterialProperty struct {
|
|
|
|
//Specifies the name of the property (aka key). Keys are generally case insensitive.
|
|
name string
|
|
|
|
/** Textures: Specifies their exact usage semantic.
|
|
* For non-texture properties, this member is always 0 (aka TextureTypeNone).
|
|
*/
|
|
Semantic TextureType
|
|
|
|
/** Textures: Specifies the index of the texture.
|
|
* For non-texture properties, this member is always 0.
|
|
*/
|
|
Index uint
|
|
|
|
/** Type information for the property.
|
|
*
|
|
* Defines the data layout inside the data buffer. This is used
|
|
* by the library internally to perform debug checks and to
|
|
* utilize proper type conversions.
|
|
* (It's probably a hacky solution, but it works.)
|
|
*/
|
|
TypeInfo MatPropertyTypeInfo
|
|
|
|
/** Binary buffer to hold the property's value.
|
|
* The size of the buffer is always mDataLength.
|
|
*/
|
|
Data []byte
|
|
}
|
|
|
|
type MatPropertyTypeInfo int32
|
|
|
|
const (
|
|
MatPropTypeInfoFloat32 MatPropertyTypeInfo = iota + 1
|
|
MatPropTypeInfoFloat64
|
|
MatPropTypeInfoString
|
|
MatPropTypeInfoInt32
|
|
|
|
//Simple binary buffer, content undefined. Not convertible to anything.
|
|
MatPropTypeInfoBuffer
|
|
)
|