Browse Source

default GeomVertexWriter/Reader constructors

David Rose 20 years ago
parent
commit
8c5504212e

+ 15 - 0
panda/src/gobj/geomVertexReader.I

@@ -17,6 +17,21 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: GeomVertexReader::Default Constructor
+//       Access: Published
+//  Description: Constructs an invalid GeomVertexReader.  You must use
+//               the assignment operator to assign a valid
+//               GeomVertexReader to this object before you can use
+//               it.
+////////////////////////////////////////////////////////////////////
+INLINE GeomVertexReader::
+GeomVertexReader() :
+  _vertex_data(NULL)
+{
+  initialize();
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: GeomVertexReader::Constructor
 //     Function: GeomVertexReader::Constructor
 //       Access: Published
 //       Access: Published

+ 1 - 0
panda/src/gobj/geomVertexReader.h

@@ -59,6 +59,7 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDA GeomVertexReader : public GeomEnums {
 class EXPCL_PANDA GeomVertexReader : public GeomEnums {
 PUBLISHED:
 PUBLISHED:
+  INLINE GeomVertexReader();
   INLINE GeomVertexReader(const GeomVertexData *vertex_data);
   INLINE GeomVertexReader(const GeomVertexData *vertex_data);
   INLINE GeomVertexReader(const GeomVertexData *vertex_data,
   INLINE GeomVertexReader(const GeomVertexData *vertex_data,
                           const string &name);
                           const string &name);

+ 12 - 0
panda/src/gobj/geomVertexRewriter.I

@@ -17,6 +17,18 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: GeomVertexRewriter::Default Constructor
+//       Access: Published
+//  Description: Constructs an invalid GeomVertexRewriter.  You must use
+//               the assignment operator to assign a valid
+//               GeomVertexRewriter to this object before you can use
+//               it.
+////////////////////////////////////////////////////////////////////
+INLINE GeomVertexRewriter::
+GeomVertexRewriter() {
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: GeomVertexRewriter::Constructor
 //     Function: GeomVertexRewriter::Constructor
 //       Access: Published
 //       Access: Published

+ 1 - 0
panda/src/gobj/geomVertexRewriter.h

@@ -42,6 +42,7 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDA GeomVertexRewriter : public GeomVertexWriter, public GeomVertexReader {
 class EXPCL_PANDA GeomVertexRewriter : public GeomVertexWriter, public GeomVertexReader {
 PUBLISHED:
 PUBLISHED:
+  INLINE GeomVertexRewriter();
   INLINE GeomVertexRewriter(GeomVertexData *vertex_data);
   INLINE GeomVertexRewriter(GeomVertexData *vertex_data);
   INLINE GeomVertexRewriter(GeomVertexData *vertex_data,
   INLINE GeomVertexRewriter(GeomVertexData *vertex_data,
                             const string &name);
                             const string &name);

+ 15 - 0
panda/src/gobj/geomVertexWriter.I

@@ -17,6 +17,21 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: GeomVertexWriter::Default Constructor
+//       Access: Published
+//  Description: Constructs an invalid GeomVertexWriter.  You must use
+//               the assignment operator to assign a valid
+//               GeomVertexWriter to this object before you can use
+//               it.
+////////////////////////////////////////////////////////////////////
+INLINE GeomVertexWriter::
+GeomVertexWriter() :
+  _vertex_data(NULL)
+{
+  initialize();
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: GeomVertexWriter::Constructor
 //     Function: GeomVertexWriter::Constructor
 //       Access: Published
 //       Access: Published

+ 1 - 0
panda/src/gobj/geomVertexWriter.h

@@ -72,6 +72,7 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDA GeomVertexWriter : public GeomEnums {
 class EXPCL_PANDA GeomVertexWriter : public GeomEnums {
 PUBLISHED:
 PUBLISHED:
+  INLINE GeomVertexWriter();
   INLINE GeomVertexWriter(GeomVertexData *vertex_data);
   INLINE GeomVertexWriter(GeomVertexData *vertex_data);
   INLINE GeomVertexWriter(GeomVertexData *vertex_data,
   INLINE GeomVertexWriter(GeomVertexData *vertex_data,
                           const string &name);
                           const string &name);