Skip to content

Commit

Permalink
Moved WaveFrontReader to DX namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 8, 2024
1 parent 70c5fe0 commit d3d2d59
Show file tree
Hide file tree
Showing 2 changed files with 577 additions and 572 deletions.
6 changes: 4 additions & 2 deletions Meshconvert/MeshOBJ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ HRESULT LoadFromOBJ(
bool ccw,
bool dds)
{
WaveFrontReader<uint32_t> wfReader;
using Vertex = DX::WaveFrontReader<uint32_t>::Vertex;

DX::WaveFrontReader<uint32_t> wfReader;
HRESULT hr = wfReader.Load(szFilename, ccw);
if (FAILED(hr))
return hr;
Expand Down Expand Up @@ -117,7 +119,7 @@ HRESULT LoadFromOBJ(
if (FAILED(hr))
return hr;

hr = vbr.AddStream(wfReader.vertices.data(), wfReader.vertices.size(), 0, sizeof(WaveFrontReader<uint32_t>::Vertex));
hr = vbr.AddStream(wfReader.vertices.data(), wfReader.vertices.size(), 0, sizeof(Vertex));
if (FAILED(hr))
return hr;

Expand Down
Loading

0 comments on commit d3d2d59

Please sign in to comment.