Exemplo n.º 1
0
func (t *Transform) Copy() *Transform {
	var cp Transform
	C.al_copy_transform((*C.ALLEGRO_TRANSFORM)(&cp), (*C.ALLEGRO_TRANSFORM)(t))
	return &cp
}
Exemplo n.º 2
0
func (t *Transform) Copy() *Transform {
	ts := new(C.ALLEGRO_TRANSFORM)
	C.al_copy_transform((*C.ALLEGRO_TRANSFORM)(unsafe.Pointer(t)), ts)
	return (*Transform)(unsafe.Pointer(ts))
}