mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Remove deprecated AutoBaker
This commit is contained in:
parent
c1685d827e
commit
48e58febc6
3 changed files with 0 additions and 70 deletions
|
@ -19,7 +19,6 @@
|
||||||
#include <ThreadedAssignment.h>
|
#include <ThreadedAssignment.h>
|
||||||
|
|
||||||
#include "AssetUtils.h"
|
#include "AssetUtils.h"
|
||||||
#include "AutoBaker.h"
|
|
||||||
#include "ReceivedMessage.h"
|
#include "ReceivedMessage.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
//
|
|
||||||
// AutoBaker.cpp
|
|
||||||
// assignment-client/src/assets
|
|
||||||
//
|
|
||||||
// Created by Clement Brisset on 8/9/17
|
|
||||||
// Copyright 2015 High Fidelity, Inc.
|
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "AutoBaker.h"
|
|
||||||
#include <shared/Algorithms.h>
|
|
||||||
|
|
||||||
using namespace alg;
|
|
||||||
|
|
||||||
void AutoBaker::addPendingBake(AssetHash hash) {
|
|
||||||
_pendingBakes.push_back(hash);
|
|
||||||
|
|
||||||
// Maybe start baking it right away
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AutoBaker::assetNeedsBaking(AssetPath path, AssetHash hash) {
|
|
||||||
return path.endsWith(".fbx");
|
|
||||||
}
|
|
||||||
|
|
||||||
BakingStatus AutoBaker::getAssetStatus(AssetHash hash) {
|
|
||||||
if (find(_pendingBakes, hash) != std::end(_pendingBakes)) {
|
|
||||||
return Pending;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (find(_currentlyBaking, hash) != std::end(_currentlyBaking)) {
|
|
||||||
return Baking;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NotBaked;
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
//
|
|
||||||
// AutoBaker.h
|
|
||||||
// assignment-client/src/assets
|
|
||||||
//
|
|
||||||
// Created by Clement Brisset on 8/9/17
|
|
||||||
// Copyright 2015 High Fidelity, Inc.
|
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef hifi_AutoBaker_h
|
|
||||||
#define hifi_AutoBaker_h
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "AssetUtils.h"
|
|
||||||
|
|
||||||
class AutoBaker {
|
|
||||||
public:
|
|
||||||
void addPendingBake(AssetHash hash);
|
|
||||||
|
|
||||||
bool assetNeedsBaking(AssetPath path, AssetHash hash);
|
|
||||||
|
|
||||||
BakingStatus getAssetStatus(AssetHash hash);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::vector<AssetHash> _pendingBakes;
|
|
||||||
std::vector<AssetHash> _currentlyBaking;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* hifi_AutoBaker_h */
|
|
Loading…
Reference in a new issue