Skip to content

Commit

Permalink
add terrain obj
Browse files Browse the repository at this point in the history
  • Loading branch information
AsPJT committed Jan 29, 2019
1 parent 55d9fdd commit 086af97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DungeonTemplateLibrary/DungeonFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ namespace dtl {
}
//objファイルの書き込み
template<typename Matrix_>
bool fileWrite_obj(const Matrix_& matrix_, const std::string& str_) noexcept {
bool fileWriteTerrain_obj(const Matrix_& matrix_, const std::string& str_) noexcept {
if (matrix_.size() == 0 || matrix_[0].size() == 0) return false;
std::ofstream ofs(str_);
if (ofs.fail()) return false;
Expand Down
4 changes: 2 additions & 2 deletions DungeonTemplateLibrary/EasyMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ int main() {
//dtl::dungeonStringOutputBool(matrix, "##", " ");

std::array<std::array<std::uint_fast16_t, 257>, 257> matrix{};
dtl::FractalIsland<std::uint_fast8_t> fi(matrix, 0,60);
dtl::fileWrite_obj(matrix, "test.obj");
dtl::ChunkIsland<std::uint_fast8_t> fi(matrix, 0,60);
dtl::fileWriteTerrain_obj(matrix, "test.obj");

//dtl::dungeonNumberOutput(matrix, ",");

Expand Down

0 comments on commit 086af97

Please sign in to comment.