예제 #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
파일: display.go 프로젝트: beoran/algo
// 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()))
}