示例#1
0
// SetLayers sets layers bitmask of the shape. Shapes collide only if bitwise
// of their layers is non-zero.
func (s shapeBase) SetLayers(l Layers) {
	C.cpShapeSetLayers(s.c(), l.c())
}
示例#2
0
文件: chipmunk.go 项目: andrebq/exp
func (s *Shape) SetLayers(layer Layer) {
	C.cpShapeSetLayers(s.shape, C.cpLayers(C.uint(layer)))
}