Ejemplo n.º 1
0
//GetVersion retrieves the major, minor and revision numbers of the GLFW
//library. It is intended for when you are using GLFW as a shared library and
//want to ensure that you are using the minimum required version.
//
//This function may be called before Init.
func GetVersion() (major, minor, revision int) {
	var (
		maj C.int
		min C.int
		rev C.int
	)

	C.glfwGetVersion(&maj, &min, &rev)
	return int(maj), int(min), int(rev)
}
Ejemplo n.º 2
0
Archivo: glfw.go Proyecto: maun/glfw
func Version() (major, minor, rev int) {
	var majorC, minorC, revC C.int
	C.glfwGetVersion(&majorC, &minorC, &revC)
	return int(majorC), int(minorC), int(revC)
}