roc/platform_darwin.py
cecilkorik ab901dc58f Added platform specific architecture and cleaned up some of the platform
specific hacks in video.py
Added a config file (settings.cfg)
Added functionality for saving last used window position!
Added displaylists to models.py
Broke fonts (temporarily)
2011-10-23 01:42:40 -06:00

17 lines
No EOL
409 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