Basic graphics structure
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
#include <memory>
|
||||
#include <atomic>
|
||||
|
||||
#define DECLARE_REF(x) class x; \
|
||||
typedef RefPtr<x> P##x; \
|
||||
typedef UniquePtr<x> UP##x;
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
typedef uint64_t uint64;
|
||||
@@ -16,7 +20,6 @@ namespace Seele
|
||||
typedef int16_t int16;
|
||||
typedef int8_t int8;
|
||||
|
||||
|
||||
template<typename T>
|
||||
class RefPtr
|
||||
{
|
||||
@@ -35,7 +38,7 @@ namespace Seele
|
||||
if (this != &other)
|
||||
{
|
||||
object->removeRef();
|
||||
object = other->object;
|
||||
object = other.object;
|
||||
object->addRef();
|
||||
}
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user