Skip to content

Commit

Permalink
Declare enum scope to int to ease usage in Hesiod
Browse files Browse the repository at this point in the history
  • Loading branch information
otto-link committed Mar 19, 2024
1 parent f80cd10 commit eab749d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions HighMap/include/highmap/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ namespace hmap
/**
* @brief Mesh type.
*/
enum MeshType
enum MeshType : int
{
tri_optimized, ///< Triangles with optimized Delaunay triangulation
quad, ///< Quad elements.
tri, ///< Triangle elements
};

Expand All @@ -37,13 +36,12 @@ enum MeshType
*/
static std::map<MeshType, std::string> mesh_type_as_string = {
{tri_optimized, "triangles (optimized)"},
{quad, "quad"},
{tri, "triangles"}};

/**
* @brief Asset export format (nomemclature of formats supported by assimp)
*/
enum AssetExportFormat
enum AssetExportFormat : int
{
_3ds, ///< Autodesk 3DS (legacy) - *.3ds
_3mf, ///< The 3MF-File-Format - *.3mf
Expand Down

0 comments on commit eab749d

Please sign in to comment.