fix syntax problem in some compilers
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct ALIGN(16) RageVector4
|
struct RageVector4
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RageVector4() {}
|
RageVector4() {}
|
||||||
@@ -95,9 +95,9 @@ public:
|
|||||||
friend RageVector4 operator * ( float f, const RageVector4& other ) { return other*f; }
|
friend RageVector4 operator * ( float f, const RageVector4& other ) { return other*f; }
|
||||||
|
|
||||||
float x, y, z, w;
|
float x, y, z, w;
|
||||||
};
|
} ALIGN(16);
|
||||||
|
|
||||||
struct ALIGN(16) RageColor
|
struct RageColor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RageColor() {}
|
RageColor() {}
|
||||||
@@ -154,7 +154,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
float r, g, b, a;
|
float r, g, b, a;
|
||||||
};
|
} ALIGN(16);
|
||||||
|
|
||||||
/* Convert floating-point 0..1 value to integer 0..255 value. *
|
/* Convert floating-point 0..1 value to integer 0..255 value. *
|
||||||
*
|
*
|
||||||
@@ -252,7 +252,7 @@ struct RageModelVertex // doesn't have color. Relies on material color
|
|||||||
// MAX, Direct3D, and OpenGL all handle matrices. Even though the OpenGL
|
// MAX, Direct3D, and OpenGL all handle matrices. Even though the OpenGL
|
||||||
// documentation is in column-major form, the OpenGL code is designed to
|
// documentation is in column-major form, the OpenGL code is designed to
|
||||||
// handle matrix operations in row-major form.
|
// handle matrix operations in row-major form.
|
||||||
struct ALIGN(16) RageMatrix
|
struct RageMatrix
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RageMatrix() {};
|
RageMatrix() {};
|
||||||
@@ -274,7 +274,7 @@ public:
|
|||||||
RageMatrix GetTranspose() const;
|
RageMatrix GetTranspose() const;
|
||||||
|
|
||||||
float m[4][4];
|
float m[4][4];
|
||||||
};
|
} ALIGN(16);
|
||||||
|
|
||||||
RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b );
|
RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user