示例#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()))
}