コード例 #1
0
ファイル: space.go プロジェクト: ftrvxmtrx/gochipmunk
// EachShape calls a callback function on each shape in the space.
func (s *Space) EachShape(iter func(Shape)) {
	p := Pointer(&iter)
	C.space_each_shape(s.c(), p)
}
コード例 #2
0
ファイル: space.go プロジェクト: ianremmler/chipmunk
// EachShape calls a callback function on each shape in the space.
func (s Space) EachShape(iter func(Shape)) {
	p := unsafe.Pointer(&iter)
	C.space_each_shape(s.c(), p)
}