1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
#include "System/float4.h"
#include "System/creg/creg_cond.h"
CR_BIND(float4, );
CR_REG_METADATA(float4,
(CR_MEMBER(x), CR_MEMBER(y), CR_MEMBER(z), CR_MEMBER(w)));
float4::float4() : float3(),w(0.0f)
{
// x, y and z are default to 0.0f in float3()
// ensure that we use a continuous block of memory
// (required for passing to gl functions)
assert(&y == &x + 1);
assert(&z == &y + 1);
assert(&w == &z + 1);
}
|