]> git.treefish.org Git - phys/latlib.git/blobdiff - culooks_drawing.cpp
Implemented 0-observable-mode.
[phys/latlib.git] / culooks_drawing.cpp
index 61dc30a59ab6224617f1434f070c0f339448d428..65c7644f61671f500750e18b2a9fa730989b9d1e 100644 (file)
@@ -93,7 +93,7 @@ void culooks::drawing::reshapeFunc(int w, int h)
 void culooks::drawing::displayFunc()
 {
   culooks::window *Win = getWin();
-   
+
   glClearColor(Win->bgcolor[0], Win->bgcolor[1], Win->bgcolor[2], Win->bgcolor[3]);
   glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
     
@@ -119,13 +119,13 @@ void culooks::drawing::displayFunc()
 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);
@@ -161,7 +161,6 @@ void culooks::drawing::idleFunc()
 void* culooks::drawing::glutThread(void *_comArg)
 {
   comarg *comArg = (comarg*)_comArg;
-
   glutInit(comArg->argc, comArg->argv);
   initWindow(0);
   glutMainLoop();