fixed some rasters (again)

This commit is contained in:
aap
2020-07-29 22:42:52 +02:00
parent 90b624fc3a
commit 162c2d2035
6 changed files with 145 additions and 91 deletions

View File

@@ -74,6 +74,16 @@ typedef uint32 uint;
#define nelem(A) (sizeof(A) / sizeof A[0])
#ifdef __GNUC__
#define RWALIGN(n) __attribute__ ((aligned (n)))
#else
#ifdef _MSC_VER
#define RWALIGN(n) __declspec(align(n))
#else
#define RWALIGN(n) // unknown compiler...ignore
#endif
#endif
// Lists
struct LLLink
@@ -286,7 +296,7 @@ inline V3d rotate(const V3d &v, const Quat &q) { return mult(mult(q, makeQuat(0.
Quat lerp(const Quat &q, const Quat &p, float32 r);
Quat slerp(const Quat &q, const Quat &p, float32 a);
struct RawMatrix
struct RWALIGN(16) RawMatrix
{
V3d right;
float32 rightw;
@@ -302,7 +312,7 @@ struct RawMatrix
static void setIdentity(RawMatrix *dst);
};
struct Matrix
struct RWALIGN(16) Matrix
{
enum Type {
TYPENORMAL = 1,