Refactor Streaming with new settings and textures streaming configuration
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
#include "StreamableResource.h"
|
||||
#include "StreamingManager.h"
|
||||
#include "Streaming.h"
|
||||
|
||||
StreamableResource::StreamableResource(StreamingGroup* group)
|
||||
: _group(group)
|
||||
, _isDynamic(true)
|
||||
, _isStreaming(false)
|
||||
, _streamingQuality(MAX_STREAMING_QUALITY)
|
||||
, _streamingQuality(1.0f)
|
||||
{
|
||||
ASSERT(_group != nullptr);
|
||||
}
|
||||
@@ -23,7 +23,7 @@ void StreamableResource::startStreaming(bool isDynamic)
|
||||
|
||||
if (_isStreaming == false)
|
||||
{
|
||||
StreamingManager::Resources.Add(this);
|
||||
Streaming::Resources.Add(this);
|
||||
_isStreaming = true;
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ void StreamableResource::stopStreaming()
|
||||
{
|
||||
if (_isStreaming == true)
|
||||
{
|
||||
StreamingManager::Resources.Remove(this);
|
||||
Streaming::Resources.Remove(this);
|
||||
Streaming = StreamingCache();
|
||||
_isStreaming = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user