Beispiel #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
}
Beispiel #2
0
func (d *Display) GetWidth() int32 {
	return int32(C.al_get_display_width((*C.ALLEGRO_DISPLAY)(unsafe.Pointer(d))))
}
Beispiel #3
0
// Gets the width of the display  in pixels
func (self *Display) Width() int {
	return int(C.al_get_display_width(self.handle))
}