diff --git a/src/Graphics/ObjectHandle.h b/src/Graphics/ObjectHandle.h index 6cf4949c..f9e66edc 100644 --- a/src/Graphics/ObjectHandle.h +++ b/src/Graphics/ObjectHandle.h @@ -12,6 +12,9 @@ namespace graphics { bool operator==(const ObjectHandle & _other) const { return m_name == _other.m_name; } bool operator!=(const ObjectHandle & _other) const { return m_name != _other.m_name; } + + bool isNotNull() const { return m_name != 0; } + void reset() { m_name = 0; } private: