Пример #1
0
// SetImportPropertyInteger sets an integer property.
//
// This is the C-version of #Assimp::Importer::SetPropertyInteger(). 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.
//jhk
// The value paremeter specifies the new value for the property.
func setImportPropertyInteger(store *propertyStore, szName string, value int) {
	C.aiSetImportPropertyInteger(
		store.c,
		C.CString(szName),
		C.int(value),
	)
}
Пример #2
0
func (p *PropertyStore) SetPropertyInteger(name string, value int) {
	szName := C.CString(name)
	defer C.free(unsafe.Pointer(szName))
	C.aiSetImportPropertyInteger((*C.struct_aiPropertyStore)(p), szName, C.int(value))
}