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:
parent
06270eaac0
commit
46010244f5
26 changed files with 111 additions and 79 deletions
12
BBGE/Base.h
12
BBGE/Base.h
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue