void AppDelegate::initGLContextAttrs()
{
//设置OpenGL上下文属性,现在只能设置六个属性:
//红,绿,蓝,透明度,深度,模板
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};
GLView::setGLContextAttrs(glContextAttrs);
}
void AppDelegate::initGLContextAttrs()
{
//设置OpenGL上下文属性,现在只能设置六个属性:
//红,绿,蓝,透明度,深度,模板
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};
GLView::setGLContextAttrs(glContextAttrs);
}