コード例 #1
0
ファイル: display.go プロジェクト: bluepeppers/allegro
func (d *Display) GetDimensions() (int, int) {
	ptr := (*C.ALLEGRO_DISPLAY)(d)
	var w, h int

	w = int(C.al_get_display_width(ptr))
	h = int(C.al_get_display_height(ptr))

	return w, h
}
コード例 #2
0
ファイル: display.go プロジェクト: b1naryth1ef/allegro
func (d *Display) GetHeight() int32 {
	return int32(C.al_get_display_height((*C.ALLEGRO_DISPLAY)(unsafe.Pointer(d))))
}
コード例 #3
0
ファイル: display.go プロジェクト: beoran/algo
// Gets the height of the display in pixels
func (self *Display) Height() int {
	return int(C.al_get_display_height(self.handle))
}