コード例 #1
0
ファイル: graphics.go プロジェクト: bluepeppers/allegro
func NewBitmap(w, h int) *Bitmap {
	var b *Bitmap

	b = (*Bitmap)(C.al_create_bitmap(C.int(w), C.int(h)))

	return b
}
コード例 #2
0
ファイル: bitmap.go プロジェクト: beoran/algo
// Creates a new bitmap. It has a finalizer in place that will let it be automatically
// destroyed.
func CreateBitmap(w, h int) *Bitmap {
	return wrapBitmap(C.al_create_bitmap(C.int(w), C.int(h)))
}
コード例 #3
0
ファイル: graphics.go プロジェクト: b1naryth1ef/allegro
func CreateBitmap(w, h int32) *Bitmap {
	return (*Bitmap)(unsafe.Pointer(C.al_create_bitmap(C.int(w), C.int(h))))
}