示例#1
0
文件: Material.go 项目: krux02/assimp
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)
}
示例#2
0
文件: Material.go 项目: krux02/assimp
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)
}