mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-30 16:47:57 -05:00
chore: update formatting due to updated clang-format version
This commit is contained in:
@ -25,7 +25,7 @@ public:
|
|||||||
|
|
||||||
[[nodiscard]] virtual std::optional<asset_type_t> GetHandlingAssetType() const = 0;
|
[[nodiscard]] virtual std::optional<asset_type_t> GetHandlingAssetType() const = 0;
|
||||||
virtual AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) = 0;
|
virtual AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) = 0;
|
||||||
virtual void FinalizeZone(AssetCreationContext& context){};
|
virtual void FinalizeZone(AssetCreationContext& context) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename AssetType> class AssetCreator : public IAssetCreator
|
template<typename AssetType> class AssetCreator : public IAssetCreator
|
||||||
|
@ -25,5 +25,5 @@ public:
|
|||||||
|
|
||||||
[[nodiscard]] virtual asset_type_t GetHandlingAssetType() const = 0;
|
[[nodiscard]] virtual asset_type_t GetHandlingAssetType() const = 0;
|
||||||
virtual void PostProcessAsset(XAssetInfoGeneric& assetInfo, AssetCreationContext& context) = 0;
|
virtual void PostProcessAsset(XAssetInfoGeneric& assetInfo, AssetCreationContext& context) = 0;
|
||||||
virtual void FinalizeZone(AssetCreationContext& context){};
|
virtual void FinalizeZone(AssetCreationContext& context) {};
|
||||||
};
|
};
|
||||||
|
@ -28,7 +28,7 @@ namespace tangent_space
|
|||||||
|
|
||||||
void SetVec3(void* dest, const size_t index, const size_t stride, const tvec3& data)
|
void SetVec3(void* dest, const size_t index, const size_t stride, const tvec3& data)
|
||||||
{
|
{
|
||||||
auto* out = reinterpret_cast<float(*)[3]>(static_cast<char*>(dest) + stride * index);
|
auto* out = reinterpret_cast<float (*)[3]>(static_cast<char*>(dest) + stride * index);
|
||||||
(*out)[0] = data[0];
|
(*out)[0] = data[0];
|
||||||
(*out)[1] = data[1];
|
(*out)[1] = data[1];
|
||||||
(*out)[2] = data[2];
|
(*out)[2] = data[2];
|
||||||
|
@ -49,7 +49,7 @@ DefinesStreamProxy::DefineParameterPosition::DefineParameterPosition(const unsig
|
|||||||
}
|
}
|
||||||
|
|
||||||
DefinesStreamProxy::Define::Define()
|
DefinesStreamProxy::Define::Define()
|
||||||
: m_contains_token_pasting_operators(false){};
|
: m_contains_token_pasting_operators(false) {};
|
||||||
|
|
||||||
DefinesStreamProxy::Define::Define(std::string name, std::string value)
|
DefinesStreamProxy::Define::Define(std::string name, std::string value)
|
||||||
: m_name(std::move(name)),
|
: m_name(std::move(name)),
|
||||||
|
@ -89,7 +89,7 @@ public:
|
|||||||
std::vector<scr_string_t> usedScriptStrings,
|
std::vector<scr_string_t> usedScriptStrings,
|
||||||
std::vector<IndirectAssetReference> indirectAssetReferences)
|
std::vector<IndirectAssetReference> indirectAssetReferences)
|
||||||
: XAssetInfoGeneric(
|
: XAssetInfoGeneric(
|
||||||
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences))
|
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ public:
|
|||||||
std::vector<IndirectAssetReference> indirectAssetReferences,
|
std::vector<IndirectAssetReference> indirectAssetReferences,
|
||||||
Zone* zone)
|
Zone* zone)
|
||||||
: XAssetInfoGeneric(
|
: XAssetInfoGeneric(
|
||||||
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences), zone)
|
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences), zone)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user