#include #include #include #include #include using namespace hgl; void draw() { glClearColor(0,0,0,1); //设置清屏颜色 glClear(GL_COLOR_BUFFER_BIT); //清屏 } void output_ogl_info() { std::cout<<"Vendor: "<Init()) { std::cerr<<"Init RenderDevice(GLFW) failed."<1) { if(stricmp(argv[1],"core")==0) rs.opengl.core=true; else rs.opengl.core=false; } else rs.opengl.core=false; RenderWindow *win=device->Create(1280,720,&ws,&rs); win->MakeToCurrent(); //切换当前窗口到前台 output_ogl_info(); output_ogl_values(); delete win; delete device; return 0; }