31 #ifndef SWORD25_RENDER_OBJECT_PTR_H 32 #define SWORD25_RENDER_OBJECT_PTR_H 38 #include "sword25/kernel/common.h" 39 #include "sword25/gfx/renderobjectregistry.h" 52 T *operator->()
const {
53 return static_cast<T *
>(RenderObjectRegistry::instance().resolveHandle(_handle));
57 return _handle == other._handle;
60 bool isValid()
const {
61 return RenderObjectRegistry::instance().resolveHandle(_handle) != 0;
65 delete static_cast<T *
>(RenderObjectRegistry::instance().resolveHandle(_handle));
Definition: renderobjectptr.h:46