void culooks::drawing::displayFunc()
{
culooks::window *Win = getWin();
-
+
+ glLineWidth(Win->linewidth);
+
glClearColor(Win->bgcolor[0], Win->bgcolor[1], Win->bgcolor[2], Win->bgcolor[3]);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
void culooks::drawing::initWindow(int winid)
{
- glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB|GLUT_DEPTH);
+ glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_DEPTH);
glutInitWindowSize(culooks::Windows[winid].second->w, culooks::Windows[winid].second->h);
glutInitWindowPosition(winid*100,winid*100);
glutCreateWindow( ("culooks / " + culooks::Windows[winid].second->name).c_str() );
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glEnable(GL_BLEND);
+
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
void* culooks::drawing::glutThread(void *_comArg)
{
comarg *comArg = (comarg*)_comArg;
-
glutInit(comArg->argc, comArg->argv);
initWindow(0);
glutMainLoop();