# 检查是否支持多重采样技术
if not glGetString(GL_EXTENSIONS).find(b'GL_ARB_multisample') >= 0:
print('Multi-sampling not available')
else:
print('Multi-sampling available')
glEnable(GL_MULTISAMPLE)
# 检查是否支持多重采样技术
if not glGetString(GL_EXTENSIONS).find(b'GL_ARB_multisample') >= 0:
print('Multi-sampling not available')
else:
print('Multi-sampling available')
glEnable(GL_MULTISAMPLE)