Skip to content
Snippets Groups Projects
Commit d253c74b authored by Trevor Hollmann's avatar Trevor Hollmann
Browse files

[#63] Add UNDEFINED to IndexType enum for error cases.

parent c2596c02
No related branches found
No related tags found
1 merge request!51Resolve "Laden mehrer Meshes mit Materials und Textures"
...@@ -53,7 +53,7 @@ enum PrimitiveMode { ...@@ -53,7 +53,7 @@ enum PrimitiveMode {
}; };
/* The indices in the index buffer can be of different bit width. */ /* The indices in the index buffer can be of different bit width. */
enum IndexType { UINT32=0, UINT16=1, UINT8=2 }; enum class IndexType : uint8_t { UNDEFINED=0, UINT8=1, UINT16=2, UINT32=3 };
/* Flags for the bit-mask in the Material struct. Use the bitof() macro to /* Flags for the bit-mask in the Material struct. Use the bitof() macro to
* translate the enums value when checking a flag of the mask: * translate the enums value when checking a flag of the mask:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment