]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_binobj.hxx
Extended .btg format to support a 'points' primitive.
[simgear.git] / simgear / io / sg_binobj.hxx
index 5809cf08e4c729aa89710b6719bdf1d0da5ed4a3..bd76ac6a3f54cdb73447fc47c6bd41960682fd07 100644 (file)
 #define _SG_BINOBJ_HXX
 
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <plib/sg.h>
 
 #include <simgear/compiler.h>
@@ -74,7 +70,7 @@ typedef group_list::const_iterator const_group_list_iterator;
  * - property: prop_typecode, nbytes, BYTE+
  *
  * - obj_typecode: bounding sphere | vertices | normals | texcoords |
- *                 triangles | fans | strips 
+ *                 points | triangles | fans | strips 
  *
  * - prop_typecode: material_name | ???
  *
@@ -98,6 +94,8 @@ class SGBinObject {
     point_list wgs84_nodes;
     point_list normals;
     point_list texcoords;
+    group_list pts_v;
+    string_list pt_materials;
     group_list tris_v;
     group_list tris_tc; 
     string_list tri_materials;
@@ -127,6 +125,11 @@ public:
     inline point_list get_texcoords() const { return texcoords; }
     inline void set_texcoords( point_list t ) { texcoords = t; }
 
+    inline group_list get_pts_v() const { return pts_v; }
+    inline void set_pts_v( group_list g ) { pts_v = g; }
+    inline string_list get_pt_materials() const { return pt_materials; }
+    inline void set_pt_materials( string_list s ) { pt_materials = s; }
+
     inline group_list get_tris_v() const { return tris_v; }
     inline void set_tris_v( group_list g ) { tris_v = g; }
     inline group_list get_tris_tc() const { return tris_tc; }