Пример #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)
}
Пример #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)
}