mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-06-30 13:26:02 -04:00
--User changes
-Edits will not save back to the file in memory on render completion when preview renderer is running. --Bug fixes -dc_perlin was crashing on Nvidia when using SP. -Duplicate images were randomly getting added to the file in memory. -Crash when opening an Xml with less than 2 flames in it. --Code changes -Use raw array of floats in OpenCL for perlin noise, rather than float3/double3. -Add some default cases to dc_perlin. -Redo singleton pattern yet again. Deriving from a templated Singleton<T> class was creating a separate instance per module. Now only one instance of each type will ever be created and it will be wrapped in a shared_ptr which guarantees its deletion as main() exits.
This commit is contained in:
@ -17,14 +17,12 @@ namespace EmberNs
|
||||
m_Variations.push_back(new Post##varName##Variation<T>());
|
||||
|
||||
/// <summary>
|
||||
/// Singleton pattern, return a reference to the only instance of this object in existence.
|
||||
/// Singleton patterns, return a reference to the only instance of this object in existence.
|
||||
/// </summary>
|
||||
template <typename T>
|
||||
VariationList<T>& VariationList<T>::Instance()
|
||||
{
|
||||
static VariationList<T> v;
|
||||
return v;
|
||||
}
|
||||
SINGLETON_INSTANCE_IMPL(VarFuncs<T>)
|
||||
template <typename T>
|
||||
SINGLETON_INSTANCE_IMPL(VariationList<T>)
|
||||
|
||||
/// <summary>
|
||||
/// Constructor which initializes all of the variation objects and stores them in the list.
|
||||
|
Reference in New Issue
Block a user