Exemplo n.º 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)
}
Exemplo n.º 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)
}