Example #1
0
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
}
Example #2
0
func (d *Display) GetHeight() int32 {
	return int32(C.al_get_display_height((*C.ALLEGRO_DISPLAY)(unsafe.Pointer(d))))
}
Example #3
0
// Gets the height of the display in pixels
func (self *Display) Height() int {
	return int(C.al_get_display_height(self.handle))
}