diff options
| author | vimene <vincent.menegaux@gmail.com> | 2026-02-03 20:26:01 +0100 |
|---|---|---|
| committer | vimene <vincent.menegaux@gmail.com> | 2026-02-03 20:26:01 +0100 |
| commit | cbf7d23623b5bb2d2092cb6c86bc965138b4ea75 (patch) | |
| tree | 7234b255b871cecca24aadc03c8d0857202f48e4 /src/o3d/mesh.hpp | |
| parent | 0d10b77f77459333c5549711334f417623ab1f3e (diff) | |
| download | engine-cbf7d23623b5bb2d2092cb6c86bc965138b4ea75.tar.gz | |
This commit add mipmaps, but for now, mipmaps are generated on the gpu
at runtime. We should generate them in advance.
- added mipmaps for the hardware renderer
- renamed stb_image.c to stb_image.cpp
- add compiler flag to stb_image.cpp to prevent warning
- added pipe notation for various objects to have all clipping functions
be left to right. We need this for the time being because dot notation
would considerably complicate the current implementation
- small improvements
Diffstat (limited to 'src/o3d/mesh.hpp')
| -rw-r--r-- | src/o3d/mesh.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/o3d/mesh.hpp b/src/o3d/mesh.hpp index d1d3f1c..cac0f62 100644 --- a/src/o3d/mesh.hpp +++ b/src/o3d/mesh.hpp @@ -13,7 +13,7 @@ namespace engine::o3d { struct Mesh { - static Mesh plane(float width, float height); + static Mesh plane(float width, float height) noexcept; std::vector<engine::math::Vector3> vertices; std::vector<engine::math::Vector3> normals; @@ -22,7 +22,7 @@ struct Mesh { // TODO: find a better way to do this. This workaround is due to the fact that vulkan only // accepts a single index, not an index for each attributes - std::tuple<std::vector<engine::vk::Vertex>, std::vector<uint16_t>> linearize_indices() const &; + std::tuple<std::vector<engine::vk::Vertex>, std::vector<uint16_t>> linearize_indices() const & noexcept; }; } |
