add clear()
This commit is contained in:
parent
05e48d97b6
commit
8c67180085
|
|
@ -365,26 +365,6 @@ get_current_thread() const {
|
|||
return _current_thread;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_object
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const GeomVertexArrayData *GeomVertexArrayDataHandle::
|
||||
get_object() const {
|
||||
return _object;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_object
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE GeomVertexArrayData *GeomVertexArrayDataHandle::
|
||||
get_object() {
|
||||
return _object;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_read_pointer
|
||||
// Access: Public
|
||||
|
|
@ -403,9 +383,29 @@ get_read_pointer(bool force) const {
|
|||
return _cdata->_buffer.get_read_pointer(force);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_object
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const GeomVertexArrayData *GeomVertexArrayDataHandle::
|
||||
get_object() const {
|
||||
return _object;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_object
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE GeomVertexArrayData *GeomVertexArrayDataHandle::
|
||||
get_object() {
|
||||
return _object;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_array_format
|
||||
// Access: Public
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const GeomVertexArrayFormat *GeomVertexArrayDataHandle::
|
||||
|
|
@ -415,7 +415,7 @@ get_array_format() const {
|
|||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexArrayDataHandle::get_usage_hint
|
||||
// Access: Public
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE GeomVertexArrayDataHandle::UsageHint GeomVertexArrayDataHandle::
|
||||
|
|
|
|||
|
|
@ -257,13 +257,14 @@ public:
|
|||
ALLOC_DELETED_CHAIN_DECL(GeomVertexArrayDataHandle);
|
||||
|
||||
INLINE Thread *get_current_thread() const;
|
||||
INLINE const GeomVertexArrayData *get_object() const;
|
||||
INLINE GeomVertexArrayData *get_object();
|
||||
|
||||
INLINE const unsigned char *get_read_pointer(bool force) const;
|
||||
unsigned char *get_write_pointer();
|
||||
|
||||
PUBLISHED:
|
||||
INLINE const GeomVertexArrayData *get_object() const;
|
||||
INLINE GeomVertexArrayData *get_object();
|
||||
|
||||
INLINE const GeomVertexArrayFormat *get_array_format() const;
|
||||
INLINE UsageHint get_usage_hint() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -295,6 +295,16 @@ set_column(const InternalName *name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexReader::clear
|
||||
// Access: Published
|
||||
// Description: Resets the GeomVertexReader to the initial state.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GeomVertexReader::
|
||||
clear() {
|
||||
(*this) = GeomVertexReader(_current_thread);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexReader::has_column
|
||||
// Access: Published
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ PUBLISHED:
|
|||
INLINE bool set_column(const InternalName *name);
|
||||
bool set_column(int array, const GeomVertexColumn *column);
|
||||
|
||||
INLINE void clear();
|
||||
INLINE bool has_column() const;
|
||||
INLINE int get_array() const;
|
||||
INLINE const GeomVertexColumn *get_column() const;
|
||||
|
|
|
|||
|
|
@ -248,6 +248,17 @@ set_column(int array, const GeomVertexColumn *column) {
|
|||
return GeomVertexReader::set_column(array, column);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexRewriter::clear
|
||||
// Access: Published
|
||||
// Description: Resets the GeomVertexRewriter to the initial state.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GeomVertexRewriter::
|
||||
clear() {
|
||||
GeomVertexWriter::clear();
|
||||
GeomVertexReader::clear();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexRewriter::has_column
|
||||
// Access: Published
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ PUBLISHED:
|
|||
INLINE bool set_column(const InternalName *name);
|
||||
INLINE bool set_column(int array, const GeomVertexColumn *column);
|
||||
|
||||
INLINE void clear();
|
||||
INLINE bool has_column() const;
|
||||
INLINE int get_array() const;
|
||||
INLINE const GeomVertexColumn *get_column() const;
|
||||
|
|
|
|||
|
|
@ -292,6 +292,16 @@ set_column(const InternalName *name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::clear
|
||||
// Access: Published
|
||||
// Description: Resets the GeomVertexWriter to the initial state.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GeomVertexWriter::
|
||||
clear() {
|
||||
(*this) = GeomVertexWriter(_current_thread);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::has_column
|
||||
// Access: Published
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ PUBLISHED:
|
|||
INLINE bool set_column(const string &name);
|
||||
INLINE bool set_column(const InternalName *name);
|
||||
bool set_column(int array, const GeomVertexColumn *column);
|
||||
INLINE void clear();
|
||||
|
||||
INLINE bool has_column() const;
|
||||
INLINE int get_array() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue