Add clear_tag_states() to camera

This commit is contained in:
tobspr 2015-11-28 17:52:21 +01:00 committed by rdb
parent 1b857d6bda
commit 3cf2b5496b
2 changed files with 12 additions and 0 deletions

View File

@ -139,6 +139,17 @@ clear_tag_state(const string &tag_state) {
_tag_states.erase(tag_state);
}
////////////////////////////////////////////////////////////////////
// Function: Camera::clear_tag_state
// Access: Published
// Description: Removes all associations established by previous
// calls to set_tag_state().
////////////////////////////////////////////////////////////////////
void Camera::
clear_tag_states() {
_tag_states.clear();
}
////////////////////////////////////////////////////////////////////
// Function: Camera::has_tag_state
// Access: Published

View File

@ -80,6 +80,7 @@ PUBLISHED:
void set_tag_state(const string &tag_state, const RenderState *state);
void clear_tag_state(const string &tag_state);
void clear_tag_states();
bool has_tag_state(const string &tag_state) const;
CPT(RenderState) get_tag_state(const string &tag_state) const;