示例#1
0
func (t *Transform) Apply(x, y float32) (float32, float32) {

	C.al_transform_coordinates((*C.ALLEGRO_TRANSFORM)(t),
		(*C.float)(&x), (*C.float)(&y))

	return x, y
}
示例#2
0
func (t *Transform) TransformCoordinates(x, y float32) (float32, float32) {
	k := x
	l := y
	C.al_transform_coordinates((*C.ALLEGRO_TRANSFORM)(unsafe.Pointer(t)), (*C.float)(unsafe.Pointer(&k)), (*C.float)(unsafe.Pointer(&l)))
	return k, l
}