예제 #1
0
func (s *Shape) Free() {
	delete(shapeLookup, s.CPShape)
	C.cpShapeFree(s.CPShape)
	s.CPShape = nil
}
예제 #2
0
// Free removes a shape.
func (s shapeBase) Free() {
	C.cpShapeFree(s.c())
}
예제 #3
0
파일: chipmunk.go 프로젝트: andrebq/exp
func (s *Shape) Free() {
	C.cpShapeFree(s.shape)
}