示例#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)
}