Пример #1
0
// SetImportPropertyFloat sets an float property.
//
// This is the C-version of #Assimp::Importer::SetPropertyFloat(). In the C
// interface, properties are always shared by all imports. It is not possible
// to specify them per import.
//
// The szName parameter specifies the name of the configuration property to be
// set. All supported public properties are defined in the config.h header
// file.
//
// The value paremeter specifies the new value for the property.
func setImportPropertyFloat(store *propertyStore, szName string, value float32) {
	C.aiSetImportPropertyFloat(
		(*C.struct_aiPropertyStore)(unsafe.Pointer(store)),
		C.CString(szName),
		C.float(value),
	)
}
Пример #2
0
func (p *PropertyStore) SetPropertyFloat(name string, value float32) {
	szName := C.CString(name)
	defer C.free(unsafe.Pointer(szName))
	C.aiSetImportPropertyFloat((*C.struct_aiPropertyStore)(p), szName, C.float(value))
}