Graphics is now a global object, instead of a per-window one

This commit is contained in:
HOEGLER Stefan
2020-03-15 15:58:01 +01:00
parent 30e256d0aa
commit 3b55755f0c
20 changed files with 121 additions and 59 deletions
+2 -2
View File
@@ -104,13 +104,13 @@ namespace Seele
}
template<typename F>
RefPtr<F>& cast()
RefPtr<F> cast()
{
T* t = object->getHandle();
F* f = dynamic_cast<F*>(t);
if (f == nullptr)
{
return RefPtr<F>();
return nullptr;
}
RefObject<F>* newObject = (RefObject<F>*)object;
RefPtr<F> result(newObject);