1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-02 22:14:37 +00:00

remove RenderObject::blendEnabled and cleanup the blend code a bit

This commit is contained in:
fgenesis 2022-05-19 01:34:31 +02:00
parent 06270eaac0
commit 46010244f5
26 changed files with 111 additions and 79 deletions

View file

@ -40,6 +40,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define OVERRIDE
#endif
namespace internal
{
template <typename T, size_t N>
char (&_ArraySizeHelper( T (&a)[N]))[N];
template<size_t n>
struct NotZero { static const size_t value = n; };
template<>
struct NotZero<0> {};
}
#define Countof(a) (internal::NotZero<(sizeof(internal::_ArraySizeHelper(a)))>::value)
#ifdef _MSC_VER
//#pragma warning(disable:4786)