1
0

adapt dx11 engine with new object loader interface

This commit is contained in:
2026-01-09 20:16:21 +08:00
parent 184b94c5fc
commit 07bd22d2ee
4 changed files with 121 additions and 55 deletions

View File

@@ -2,9 +2,70 @@
## Dependencies
* [spdlog](https://github.com/gabime/spdlog)
* [tinyobjloader](https://github.com/tinyobjloader/tinyobjloader)
* [cgltf](https://github.com/jkuhlmann/cgltf)
We assume that you executing following commands in the root directory of `BasaltPresenter` project.
### spdlog
```sh
cd external
git clone -b 1.17.0 https://github.com/gabime/spdlog.git
cd spdlog
mkdir out
cd out
mkdir build
mkdir install
```
In Windows:
```bat
cmake -A x64 ../..
cmake --build . --config Release
cmake --install . --prefix=../install
```
Or in POSIX:
```sh
cmake -DCMAKE_BUILD_TYPE=Release ../..
cmake --build .
cmake --install . --prefix=../install
```
#### tinyobjloader
```sh
cd external
git clone -b v2.0.0 https://github.com/tinyobjloader/tinyobjloader.git
cd tinyobjloader
mkdir out
cd out
mkdir build
mkdir install
```
In Windows:
```bat
cmake -A x64 ../..
cmake --build . --config Release
cmake --install . --prefix=../install
```
Or in POSIX:
```sh
cmake -DCMAKE_BUILD_TYPE=Release ../..
cmake --build .
cmake --install . --prefix=../install
```
## Warning
This project was not written robustly.