Refactor the way resources are loaded (#191)
* WIP * WIP * Font works * WIP: Only Music remains * Looks like it's working * Fix oopsie * Core/ObjectRef: Add cast functions * Update ChangeLog.md * Audio/SoundStream: Make sound stream thread-safe
This commit is contained in:
@@ -68,6 +68,10 @@ namespace Nz
|
||||
template<typename T> bool operator>=(const T& lhs, const ObjectRef<T>& rhs);
|
||||
template<typename T> bool operator>=(const ObjectRef<T>& lhs, const T& rhs);
|
||||
|
||||
template<typename T, typename U> ObjectRef<T> ConstRefCast(const ObjectRef<U>& ref);
|
||||
template<typename T, typename U> ObjectRef<T> DynamicRefCast(const ObjectRef<U>& ref);
|
||||
template<typename T, typename U> ObjectRef<T> ReinterpretRefCast(const ObjectRef<U>& ref);
|
||||
template<typename T, typename U> ObjectRef<T> StaticRefCast(const ObjectRef<U>& ref);
|
||||
|
||||
template<typename T> struct PointedType<ObjectRef<T>> { using type = T; };
|
||||
template<typename T> struct PointedType<ObjectRef<T> const> { using type = T; };
|
||||
|
||||
Reference in New Issue
Block a user