Refactor Streaming with new settings and textures streaming configuration

This commit is contained in:
Wojtek Figat
2021-06-17 15:33:34 +02:00
parent 64501a8645
commit 4744fa05ef
42 changed files with 631 additions and 480 deletions

View File

@@ -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;
}