Ejemplo n.º 1
0
func (m *Material) GetMaterialIntegerArray(key MatKey, typ TextureType, textureIndex int, pOut []int32) Return {
	header := (*reflect.SliceHeader)(unsafe.Pointer(&pOut))
	ret := C.aiGetMaterialIntegerArray((*C.struct_aiMaterial)(m), key.constString(), C.uint(typ), C.uint(textureIndex), (*C.int)(&pOut[0]), (*C.uint)(unsafe.Pointer((&header.Len))))
	return Return(ret)
}
Ejemplo n.º 2
0
func (m *Material) GetMaterialInteger(key MatKey, typ TextureType, textureIndex int) (int, Return) {
	var i C.int
	ret := C.aiGetMaterialIntegerArray((*C.struct_aiMaterial)(m), key.constString(), C.uint(typ), C.uint(textureIndex), &i, nil)
	return int(i), Return(ret)
}