Revision: 57182
          http://sourceforge.net/p/brlcad/code/57182
Author:   n_reed
Date:     2013-08-27 17:26:57 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
Copy implementation of vlist point size and line width specification to wgl.

Modified Paths:
--------------
    brlcad/trunk/src/libdm/dm-wgl.c

Modified: brlcad/trunk/src/libdm/dm-wgl.c
===================================================================
--- brlcad/trunk/src/libdm/dm-wgl.c     2013-08-27 17:00:36 UTC (rev 57181)
+++ brlcad/trunk/src/libdm/dm-wgl.c     2013-08-27 17:26:57 UTC (rev 57182)
@@ -1114,7 +1114,11 @@
     register int       first;
     register int mflag = 1;
     float black[4] = {0.0, 0.0, 0.0, 0.0};
+    GLfloat originalPointSize, originalLineWidth;
 
+    glGetFloatv(GL_POINT_SIZE, &originalPointSize);
+    glGetFloatv(GL_LINE_WIDTH, &originalLineWidth);
+
     if (dmp->dm_debugLevel)
        bu_log("wgl_drawVList()\n");
 
@@ -1226,6 +1230,18 @@
                    glBegin(GL_POINTS);
                    glVertex3dv(dpt);
                    break;
+               case BN_VLIST_LINE_WIDTH:
+                   lineWidth = (GLfloat)pt[0][0];
+                   if (lineWidth > 0.0) {
+                       glLineWidth(lineWidth);
+                   }
+                   break;
+               case BN_VLIST_POINT_SIZE:
+                   pointSize = (GLfloat)pt[0][0];
+                   if (pointSize > 0.0) {
+                       glPointSize(pointSize);
+                   }
+                   break;
            }
        }
     }
@@ -1236,6 +1252,9 @@
     if (dmp->dm_light && dmp->dm_transparency)
        glDisable(GL_BLEND);
 
+    glPointSize(originalPointSize);
+    glLineWidth(originalLineWidth);
+
     return TCL_OK;
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to