示例#1
0
func (osx *osxSystemObject) EnableVSync(enable bool) {
	var _enable C.int
	if enable {
		_enable = 1
	}
	C.EnableVSync(unsafe.Pointer(osx.context), _enable)
}
示例#2
0
func (osx *osxSystemObject) EnableVSync(enable bool) {
	globalLock.Lock()
	defer globalLock.Unlock()
	var _enable C.int
	if enable {
		_enable = 1
	}
	C.EnableVSync(unsafe.Pointer(osx.context), _enable)
}