Пример #1
0
func GetMonitorInfo(adapter int32) (bool, *MonitorInfo) {
	var m C.ALLEGRO_MONITOR_INFO
	b := bool(C.al_get_monitor_info(C.int(adapter), &m))
	return b, (*MonitorInfo)(unsafe.Pointer(&m))
}
Пример #2
0
// Gets the monitor info for the index'th video adapter
func (self *MonitorInfo) Get(index int) bool {
	return cb2b(C.al_get_monitor_info(C.int(index), self.toC()))
}