Basic graphics structure

This commit is contained in:
HOEGLER Stefan
2020-03-02 19:07:49 +01:00
parent a14237d6ce
commit 4c2535931e
16 changed files with 137 additions and 48 deletions
+5 -2
View File
@@ -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;