loader_aw

Load OBJ/MTL file formats
git clone git://git.meso-star.fr/loader_aw.git
Log | Files | Refs | README | LICENSE

commit 1df57a50e5c004757373a29444f567ecd1f765c8
parent 95ebe4bfdabb58d5bcf3ce128eed20f133dfdb0b
Author: vaplv <vaplv@free.fr>
Date:   Tue, 14 Mar 2023 15:28:51 +0100

Merge remote-tracking branch 'origin/develop' into feature_posix_make

Diffstat:
MREADME.md | 28+++++++++++++++++++++++++++-
Mcmake/CMakeLists.txt | 6+++---
Msrc/aw.c | 2+-
Msrc/aw.h | 2+-
Msrc/aw_c.h | 2+-
Msrc/aw_mtl.c | 2+-
Msrc/aw_obj.c | 2+-
Msrc/test_aw.c | 2+-
Msrc/test_aw_mtl.c | 2+-
Msrc/test_aw_obj.c | 2+-
10 files changed, 38 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md @@ -28,6 +28,32 @@ can be edited, built, tested and installed as any CMake project. ## Release notes +### Version 2.0.1 + +Sets the CMake minimum version to 3.1: since CMake 3.20, version 2.8 has become +obsolete. + +### Version 2.0 + +Full review and refactoring of the code. + +- The named groups, the maps and the materials become pod data structures + without any init/release/copy function. Their name is now exposed as a + regular `const char*` rather than stored in a `struct str` data structure. +- All floating point data are encoded in double precision rather than in single + precision. +- The `struct aw_obj_vertex` data structure stores only the index of the vertex + attributes. Their values are retrieved by the new `aw_obj_get_vertex_data` + function. +- Add an optional stream name parameter to the `aw_<obj|mtl>_load_stream` + functions: it allows the user to define the name of the stream to load, a + name that is internally used by the logger to print messages regarding the + stream. +- Rename the `get` functions. +- Rely on RSys to parse the input files and to perform text conversions. +- Add support of the `map_bump` keyword as an alias of the `bump` keyword in + the mtl fileformat. + ### Version 1.3.1 - Update the version of the RSys dependency to 0.6: replace the deprecated @@ -41,7 +67,7 @@ can be edited, built, tested and installed as any CMake project. ## License -Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr). AW is free +Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr). AW is free software released under GPL v3+ license: GNU GPL version 3 or later. You are welcome to redistribute it under certain conditions; refer to the COPYING file for details. diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +# Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.1) project(aw C) cmake_policy(SET CMP0011 NEW) enable_testing() @@ -38,7 +38,7 @@ rcmake_append_runtime_dirs(_runtime_dirs RSys) ################################################################################ set(VERSION_MAJOR 2) set(VERSION_MINOR 0) -set(VERSION_PATCH 0) +set(VERSION_PATCH 1) set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) set(AW_FILES_SRC aw_c.h aw.c aw_obj.c aw_mtl.c) diff --git a/src/aw.c b/src/aw.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/aw.h b/src/aw.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/aw_c.h b/src/aw_c.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/aw_mtl.c b/src/aw_mtl.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/aw_obj.c b/src/aw_obj.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test_aw.c b/src/test_aw.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test_aw_mtl.c b/src/test_aw_mtl.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test_aw_obj.c b/src/test_aw_obj.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2017, 2020 Vincent Forest (vaplv@free.fr) +/* Copyright (C) 2014-2017, 2020, 2021 Vincent Forest (vaplv@free.fr) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by