mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-06-30 21:36:33 -04:00
More linux work.
This commit is contained in:
@ -178,7 +178,7 @@ void Affine2D<T>::Rotate(T angle)
|
||||
/// </summary>
|
||||
/// <param name="v">The vec2 describing how far to move in the x and y directions</param>
|
||||
template <typename T>
|
||||
void Affine2D<T>::Translate(v2T& v)
|
||||
void Affine2D<T>::Translate(const v2T& v)
|
||||
{
|
||||
O(O() + v);
|
||||
}
|
||||
@ -188,7 +188,7 @@ void Affine2D<T>::Translate(v2T& v)
|
||||
/// </summary>
|
||||
/// <param name="v">The vec2 describing how much to rotate and scale the X and Y components</param>
|
||||
template <typename T>
|
||||
void Affine2D<T>::RotateScaleXTo(v2T& v)
|
||||
void Affine2D<T>::RotateScaleXTo(const v2T& v)
|
||||
{
|
||||
Affine2D<T> rs = CalcRotateScale(X(), v);
|
||||
|
||||
@ -201,7 +201,7 @@ void Affine2D<T>::RotateScaleXTo(v2T& v)
|
||||
/// </summary>
|
||||
/// <param name="v">The vec2 describing how much to rotate and scale the X and Y components</param>
|
||||
template <typename T>
|
||||
void Affine2D<T>::RotateScaleYTo(v2T& v)
|
||||
void Affine2D<T>::RotateScaleYTo(const v2T& v)
|
||||
{
|
||||
Affine2D<T> rs = CalcRotateScale(Y(), v);
|
||||
|
||||
|
@ -75,9 +75,9 @@ public:
|
||||
bool IsID() const;
|
||||
bool IsZero() const;
|
||||
void Rotate(T angle);
|
||||
void Translate(v2T& v);
|
||||
void RotateScaleXTo(v2T& v);
|
||||
void RotateScaleYTo(v2T& v);
|
||||
void Translate(const v2T& v);
|
||||
void RotateScaleXTo(const v2T& v);
|
||||
void RotateScaleYTo(const v2T& v);
|
||||
Affine2D<T> Inverse() const;
|
||||
v2T TransformNormal(const v2T& v) const;
|
||||
v2T TransformVector(const v2T& v) const;
|
||||
|
@ -36,7 +36,7 @@
|
||||
namespace EmberNs
|
||||
{
|
||||
bool Timing::m_TimingInit = false;
|
||||
int Timing::m_ProcessorCount;
|
||||
uint Timing::m_ProcessorCount;
|
||||
template<> unique_ptr<QTIsaac<ISAAC_SIZE, ISAAC_INT>> QTIsaac<ISAAC_SIZE, ISAAC_INT>::GlobalRand = unique_ptr<QTIsaac<ISAAC_SIZE, ISAAC_INT>>(new QTIsaac<ISAAC_SIZE, ISAAC_INT>());
|
||||
|
||||
#define EXPORTPREPOSTREGVAR(varName, T) \
|
||||
|
@ -119,7 +119,7 @@ public:
|
||||
/// Return the number of cores in the system.
|
||||
/// </summary>
|
||||
/// <returns>The number of cores in the system</returns>
|
||||
static int ProcessorCount()
|
||||
static uint ProcessorCount()
|
||||
{
|
||||
Init();
|
||||
return m_ProcessorCount;
|
||||
@ -144,7 +144,7 @@ private:
|
||||
time_point<Clock> m_BeginTime;//The start of the timing, set with Tic().
|
||||
time_point<Clock> m_EndTime;//The end of the timing, set with Toc().
|
||||
static bool m_TimingInit;//Whether the performance info has bee queried.
|
||||
static int m_ProcessorCount;//The number of cores on the system, set in Init().
|
||||
static uint m_ProcessorCount;//The number of cores on the system, set in Init().
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user