17 lines
No EOL
394 B
Python
17 lines
No EOL
394 B
Python
|
|
def enable_vsync():
|
|
try:
|
|
import ctypes
|
|
import ctypes.util
|
|
ogl = ctypes.cdll.LoadLibrary(ctypes.util.find_library("OpenGL"))
|
|
v = ctypes.c_int(1)
|
|
ogl.CGLSetParameter(ogl.CGLGetCurrentContext(), ctypes.c_int(222), ctypes.pointer(v))
|
|
except:
|
|
print("Unable to set vsync mode, using driver defaults")
|
|
|
|
def get_window_handle():
|
|
return None
|
|
|
|
def get_window_rect(handle=None):
|
|
pass
|
|
|