From: Mikko Rasa Date: Wed, 12 Jan 2022 20:17:20 +0000 (+0200) Subject: Make various enums use uint8_t as their underlying type X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=11a5d4f2a35dfdcf61e16d4fcfba22e20ea6a3db Make various enums use uint8_t as their underlying type --- diff --git a/source/core/blend.h b/source/core/blend.h index da7c8c7f..50ea13bd 100644 --- a/source/core/blend.h +++ b/source/core/blend.h @@ -8,7 +8,7 @@ namespace Msp { namespace GL { -enum BlendEquation +enum BlendEquation: std::uint8_t { ADD, SUBTRACT, @@ -17,7 +17,7 @@ enum BlendEquation MAX }; -enum BlendFactor +enum BlendFactor: std::uint8_t { ZERO, ONE, @@ -35,7 +35,7 @@ enum BlendFactor ONE_MINUS_CONSTANT_ALPHA }; -enum ColorWriteMask +enum ColorWriteMask: std::uint8_t { WRITE_NONE = 0, WRITE_RED = 1, diff --git a/source/core/predicate.h b/source/core/predicate.h index 6b0a697b..38053d03 100644 --- a/source/core/predicate.h +++ b/source/core/predicate.h @@ -6,7 +6,7 @@ namespace Msp { namespace GL { -enum Predicate +enum Predicate: std::uint8_t { NEVER, ALWAYS, diff --git a/source/core/stenciltest.h b/source/core/stenciltest.h index c6a385d3..09f1d278 100644 --- a/source/core/stenciltest.h +++ b/source/core/stenciltest.h @@ -8,7 +8,7 @@ namespace Msp { namespace GL { -enum StencilOp +enum StencilOp: std::uint8_t { KEEP, SET_ZERO,