mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Use asset pipeline for blocking asset loading, remove old texture loader
This commit is contained in:
@@ -18,9 +18,12 @@ class AssetConverter
|
||||
_contentManager = contentManager;
|
||||
}
|
||||
|
||||
public void QueueForProcessing(AssetFile assetFile)
|
||||
public void QueueForProcessing(AssetFile assetFile, bool isBlocking = false)
|
||||
{
|
||||
_queue.Add(assetFile);
|
||||
if (!isBlocking)
|
||||
_queue.Add(assetFile);
|
||||
else
|
||||
Process(assetFile);
|
||||
}
|
||||
|
||||
public void Update()
|
||||
|
||||
Reference in New Issue
Block a user