Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite4df1da

Browse files
authored
Use fixed width integers for underlying enum types (#188)
1 parentb8458b1 commite4df1da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎UVAtlas/inc/UVAtlas.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace DirectX
5757
// UVATLAS_IMT_WRAP_U means the texture wraps in the U direction
5858
// UVATLAS_IMT_WRAP_V means the texture wraps in the V direction
5959
// UVATLAS_IMT_WRAP_UV means the texture wraps in both directions
60-
enum UVATLAS_IMT :unsignedint
60+
enum UVATLAS_IMT :uint32_t
6161
{
6262
UVATLAS_IMT_DEFAULT =0x00,
6363
UVATLAS_IMT_WRAP_U =0x01,
@@ -69,7 +69,7 @@ namespace DirectX
6969
// UVATLAS_DEFAULT - Meshes with more than 25k faces go through fast, meshes with fewer than 25k faces go through quality
7070
// UVATLAS_GEODESIC_FAST - Uses approximations to improve charting speed at the cost of added stretch or more charts.
7171
// UVATLAS_GEODESIC_QUALITY - Provides better quality charts, but requires more time and memory than fast.
72-
enum UVATLAS :unsignedint
72+
enum UVATLAS :uint32_t
7373
{
7474
UVATLAS_DEFAULT =0x00,
7575
UVATLAS_GEODESIC_FAST =0x01,
@@ -376,8 +376,8 @@ namespace DirectX
376376
#pragma clang diagnostic ignored "-Wdeprecated-dynamic-exception-spec"
377377
#endif
378378

379-
DEFINE_ENUM_FLAG_OPERATORS(UVATLAS_IMT);
380-
DEFINE_ENUM_FLAG_OPERATORS(UVATLAS);
379+
DEFINE_ENUM_FLAG_OPERATORS(UVATLAS_IMT)
380+
DEFINE_ENUM_FLAG_OPERATORS(UVATLAS)
381381

382382
#ifdef __clang__
383383
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp