Exemple #1
0
// 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)
}
Exemple #2
0
// 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)
}