Revision: 76687
          http://sourceforge.net/p/brlcad/code/76687
Author:   starseeker
Date:     2020-08-07 15:59:18 +0000 (Fri, 07 Aug 2020)
Log Message:
-----------
Start stubbing in functions for a bg_vlist implementation

Modified Paths:
--------------
    brlcad/branches/bioh/include/bg/vlist.h
    brlcad/branches/bioh/src/libbg/CMakeLists.txt

Modified: brlcad/branches/bioh/include/bg/vlist.h
===================================================================
--- brlcad/branches/bioh/include/bg/vlist.h     2020-08-07 14:50:02 UTC (rev 
76686)
+++ brlcad/branches/bioh/include/bg/vlist.h     2020-08-07 15:59:18 UTC (rev 
76687)
@@ -76,7 +76,7 @@
 struct bg_vlist {
     struct bg_vlist_impl *i;
     struct bg_vlist_queue *q;
-}
+};
 
 /* q is where to get/put free vlist entries - if NULL, all memory is managed
  * locally in this specific vlist */
@@ -91,21 +91,26 @@
 
 /* Values for cmd[] */
 typedef enum {
+    /* Points */
     BG_VLIST_POINT_DRAW,       /**< @brief Draw a single point */
     BG_VLIST_POINT_SIZE,       /**< @brief specify point pixel size */
+    /* Wireframes */
     BG_VLIST_LINE_MOVE,                /**< @brief specify new line */
     BG_VLIST_LINE_DRAW,                /**< @brief subsequent line vertex */
     BG_VLIST_LINE_WIDTH,       /**< @brief specify line pixel width */
+    /* Triangles */
     BG_VLIST_TRI_START,                /**< @brief pt[] has surface normal */
     BG_VLIST_TRI_MOVE,         /**< @brief move to first triangle vertex */
     BG_VLIST_TRI_DRAW,         /**< @brief subsequent triangle vertex */
     BG_VLIST_TRI_END,          /**< @brief last vert (repeats 1st), draw poly 
*/
     BG_VLIST_TRI_VERTNORM,     /**< @brief per-vertex normal, for 
interpolation */
+    /* Polygons */
     BG_VLIST_POLY_START,       /**< @brief pt[] has surface normal */
     BG_VLIST_POLY_MOVE,                /**< @brief move to first poly vertex */
     BG_VLIST_POLY_DRAW,                /**< @brief subsequent poly vertex */
     BG_VLIST_POLY_END,         /**< @brief last vert (repeats 1st), draw poly 
*/
     BG_VLIST_POLY_VERTNORM,    /**< @brief per-vertex normal, for 
interpolation */
+    /* Display Modes */
     BG_VLIST_DISPLAY_MAT,      /**< @brief specify the model matrix */
     BG_VLIST_MODEL_MAT,                /**< @brief specify the display matrix 
*/
     BG_VLIST_NULL              /**< @brief no-op command */
@@ -228,7 +233,7 @@
 /**
  * Returns string description of a vlist cmd.
  */
-BG_EXPORT extern const char const *
+BG_EXPORT extern const char *
 bg_vlist_cmd_str(bg_vlist_cmd_t cmd);
 
 /**
@@ -270,7 +275,7 @@
  */
 BG_EXPORT extern void
 bg_vlist_import(
-       struct bg_vlist *vout
+       struct bg_vlist *vout,
        struct bg_vlist_queue *q,
        struct bu_vls *input
        );

Modified: brlcad/branches/bioh/src/libbg/CMakeLists.txt
===================================================================
--- brlcad/branches/bioh/src/libbg/CMakeLists.txt       2020-08-07 14:50:02 UTC 
(rev 76686)
+++ brlcad/branches/bioh/src/libbg/CMakeLists.txt       2020-08-07 15:59:18 UTC 
(rev 76687)
@@ -30,6 +30,7 @@
   trimesh_isect.cpp
   trimesh_pt_in.c
   util.c
+  vlist.cpp
   )
 
 BRLCAD_ADDLIB(libbg "${LIBBG_SOURCES}" "libbn;libbu;SPSR;${P2T_LIBRARY}")

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



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to