Exemple #1
0
func CreateMouseCursor(bmp *Bitmap, x, y int) *MouseCursor {
	var mc *MouseCursor

	mc = (*MouseCursor)(C.al_create_mouse_cursor(
		(*C.ALLEGRO_MOUSE_CURSOR)(bmp), C.int(x), C.int(y)))

	return mc
}
Exemple #2
0
func CreateMouseCursor(bmp *Bitmap, xFocus, yFocus int32) *MouseCursor {
	return (*MouseCursor)(unsafe.Pointer(C.al_create_mouse_cursor((*C.ALLEGRO_BITMAP)(unsafe.Pointer(bmp)), C.int(xFocus), C.int(yFocus))))
}