Example #1
0
func GetVersion() (int, int, int, int) {
	var version C.uint32_t

	version = C.al_get_allegro_version()

	maj := int(version >> 24)
	min := int((version >> 16) & 255)
	rev := int((version >> 8) & 255)
	rel := int(version & 255)
	return maj, min, rev, rel
}
Example #2
0
File: al.go Project: beoran/algo
// Gets the raw version of Allegro linked to as an integer.
func GetAllegroVersion() uint32 {
	return uint32(C.al_get_allegro_version())
}