Skip to content

Commit 0a37d24

Browse files
author
devsh
committed
fight for more compilation
1 parent c91f2d7 commit 0a37d24

File tree

3 files changed

+19
-26
lines changed

3 files changed

+19
-26
lines changed

src/nbl/asset/interchange/CSTLMeshFileLoader.h

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
// Copyright (C) 2019 - DevSH Graphics Programming Sp. z O.O.
1+
// Copyright (C) 2019-2025 - DevSH Graphics Programming Sp. z O.O.
22
// This file is part of the "Nabla Engine" and was originally part of the "Irrlicht Engine"
33
// For conditions of distribution and use, see copyright notice in nabla.h
44
// See the original file in irrlicht source for authors
5+
#ifndef _NBL_ASSET_C_STL_MESH_FILE_LOADER_H_INCLUDED_
6+
#define _NBL_ASSET_C_STL_MESH_FILE_LOADER_H_INCLUDED_
57

6-
#ifndef __NBL_ASSET_C_STL_MESH_FILE_LOADER_H_INCLUDED__
7-
#define __NBL_ASSET_C_STL_MESH_FILE_LOADER_H_INCLUDED__
88

99
#include "nbl/core/declarations.h"
10-
#include "nbl/asset/interchange/IAssetLoader.h"
11-
#include "nbl/asset/ICPUPolygonGeometry.h"
10+
11+
#include "nbl/asset/interchange/IGeometryLoader.h"
1212
#include "nbl/asset/metadata/CSTLMetadata.h"
1313

14-
namespace nbl
15-
{
16-
namespace asset
14+
15+
namespace nbl::asset
1716
{
1817

1918
//! Meshloader capable of loading STL meshes.
@@ -33,10 +32,7 @@ class CSTLMeshFileLoader final : public IRenderpassIndependentPipelineLoader
3332
return ext;
3433
}
3534

36-
uint64_t getSupportedAssetTypesBitfield() const override { return IAsset::ET_MESH; }
37-
3835
private:
39-
4036
struct SContext
4137
{
4238
IAssetLoader::SAssetLoadContext inner;
@@ -69,8 +65,6 @@ class CSTLMeshFileLoader final : public IRenderpassIndependentPipelineLoader
6965
asset::IAssetManager* m_assetMgr;
7066
};
7167

72-
} // end namespace scene
73-
} // end namespace nbl
74-
68+
} // end namespace nbl::scene
7569
#endif
7670

src/nbl/asset/utils/COverdrawMeshOptimizer.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
// Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
1+
// Copyright (C) 2018-2025 - DevSH Graphics Programming Sp. z O.O.
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#include "nbl/core/declarations.h"
65

76
#include "COverdrawMeshOptimizer.h"
87

98
#include <vector>
109
#include <functional>
1110

12-
#include "CMeshManipulator.h"
13-
1411
namespace nbl::asset
1512
{
16-
13+
#if 0
1714
void COverdrawMeshOptimizer::createOptimized(asset::ICPUMeshBuffer* _outbuffer, const asset::ICPUMeshBuffer* _inbuffer, float _threshold, const system::logger_opt_ptr logger)
1815
{
1916
if (!_outbuffer || !_inbuffer)
@@ -267,5 +264,5 @@ size_t COverdrawMeshOptimizer::updateCache(uint32_t _a, uint32_t _b, uint32_t _c
267264

268265
return cacheMisses;
269266
}
270-
267+
#endif
271268
} // nbl::asset

src/nbl/asset/utils/CPolygonGeometryManipulator.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
// Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
1+
// Copyright (C) 2018-2025 - DevSH Graphics Programming Sp. z O.O.
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5+
6+
#include "nbl/asset/asset.h"
7+
58
#include <vector>
69
#include <numeric>
710
#include <functional>
811
#include <algorithm>
912
#include <unordered_map>
1013
#include <unordered_set>
1114

12-
13-
#include "nbl/asset/asset.h"
14-
#include "nbl/asset/IRenderpassIndependentPipeline.h"
15-
#include "nbl/asset/utils/CMeshManipulator.h"
15+
#include "nbl/asset/utils/CPolygonGeometryManipulator.h"
1616
#include "nbl/asset/utils/CSmoothNormalGenerator.h"
1717
#include "nbl/asset/utils/CForsythVertexCacheOptimizer.h"
1818
#include "nbl/asset/utils/COverdrawMeshOptimizer.h"
1919

20+
2021
namespace nbl::asset
2122
{
22-
23+
#if 0
2324
//! Flips the direction of surfaces. Changes backfacing triangles to frontfacing
2425
//! triangles and vice versa.
2526
//! \param mesh: Mesh on which the operation is performed.
@@ -1724,6 +1725,7 @@ core::matrix3x4SIMD IMeshManipulator::calculateOBB(const nbl::asset::ICPUMeshBuf
17241725

17251726
return TransMat;
17261727
}
1728+
#endif
17271729

17281730
} // end namespace nbl::asset
17291731

0 commit comments

Comments
 (0)