#define _SG_BINOBJ_HXX
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <plib/sg.h>
#include <simgear/compiler.h>
* - property: prop_typecode, nbytes, BYTE+
*
* - obj_typecode: bounding sphere | vertices | normals | texcoords |
- * triangles | fans | strips
+ * points | triangles | fans | strips
*
* - prop_typecode: material_name | ???
*
* - vertex: FLOAT, FLOAT, FLOAT
*/
class SGBinObject {
+ unsigned short version;
+
Point3D gbs_center;
float gbs_radius;
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;
public:
+ inline unsigned short get_version() const { return version; }
+
inline Point3D get_gbs_center() const { return gbs_center; }
inline void set_gbs_center( Point3D p ) { gbs_center = p; }
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; }