Implement drawing bitmapped objects.
This commit is contained in:
parent
1db7c464cf
commit
3d67f2bbbf
12 changed files with 66 additions and 25 deletions
|
@ -57,8 +57,11 @@ public:
|
|||
ResPtr(const ResPtr &p) { ptr_ = p.ptr_; if (ptr_ != NULL) ptr_->ref(); }
|
||||
ResPtr(T* ptr) { ptr_ = ptr; if (ptr_ != NULL) ptr_->ref(); }
|
||||
operator T*() { return ptr_; }
|
||||
operator const T*() const { return ptr_; }
|
||||
T& operator *() { return *ptr_; }
|
||||
const T& operator *() const { return *ptr_; }
|
||||
T* operator ->() { return ptr_; }
|
||||
const T* operator ->() const { return ptr_; }
|
||||
ResPtr& operator =(T* ptr) {
|
||||
if (ptr_ == ptr) return *this;
|
||||
if (ptr_ != NULL) ptr_->deref();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue