aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/core/math
diff options
context:
space:
mode:
authorNorthstar <northstar@northstar.tf>2023-12-20 15:20:02 +0100
committerNorthstar <northstar@northstar.tf>2023-12-20 15:20:02 +0100
commit1e5c4a7f6a734352f802c82b293fe3b215e3a5b2 (patch)
treeb1a5484f3839e1b0c2a9169856a51c16cf255180 /NorthstarDLL/core/math
parent714282b52039b12225c8348ef7346d092676ffb1 (diff)
downloadNorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.tar.gz
NorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.zip
Format project
Diffstat (limited to 'NorthstarDLL/core/math')
-rw-r--r--NorthstarDLL/core/math/bitbuf.h20
-rw-r--r--NorthstarDLL/core/math/color.h4
2 files changed, 12 insertions, 12 deletions
diff --git a/NorthstarDLL/core/math/bitbuf.h b/NorthstarDLL/core/math/bitbuf.h
index 8e8e216f..5ca75455 100644
--- a/NorthstarDLL/core/math/bitbuf.h
+++ b/NorthstarDLL/core/math/bitbuf.h
@@ -89,13 +89,13 @@ enum EBitCoordType
class BitBufferBase
{
- protected:
+protected:
INLINE void SetName(const char* name)
{
m_BufferName = name;
}
- public:
+public:
INLINE bool IsOverflowed()
{
return m_Overflow;
@@ -110,16 +110,16 @@ class BitBufferBase
return m_BufferName;
}
- private:
+private:
const char* m_BufferName = "";
- protected:
+protected:
u8 m_Overflow = false;
};
class BFRead : public BitBufferBase
{
- public:
+public:
BFRead() = default;
INLINE BFRead(uptr data, size_t byteLength, size_t startPos = 0, const char* bufferName = 0)
@@ -130,7 +130,7 @@ class BFRead : public BitBufferBase
SetName(bufferName);
}
- public:
+public:
INLINE void StartReading(uptr data, size_t byteLength, size_t startPos = 0)
{
m_Data = reinterpret_cast<u32 const*>(data);
@@ -706,7 +706,7 @@ class BFRead : public BitBufferBase
return GetNumBitsLeft() >> 3;
}
- private:
+private:
size_t m_DataBits; // 0x0010
size_t m_DataBytes; // 0x0018
@@ -720,7 +720,7 @@ class BFRead : public BitBufferBase
class BFWrite : public BitBufferBase
{
- public:
+public:
BFWrite() = default;
INLINE BFWrite(uptr data, size_t byteLength, const char* bufferName = 0)
@@ -731,7 +731,7 @@ class BFWrite : public BitBufferBase
SetName(bufferName);
}
- public:
+public:
INLINE void StartWriting(uptr data, size_t byteLength)
{
m_Data = reinterpret_cast<u32*>(data);
@@ -1131,7 +1131,7 @@ class BFWrite : public BitBufferBase
WriteBitVec3Coord(tmp);
}*/
- private:
+private:
size_t m_DataBits = 0;
size_t m_DataBytes = 0;
diff --git a/NorthstarDLL/core/math/color.h b/NorthstarDLL/core/math/color.h
index 76cf8a47..013c4e4c 100644
--- a/NorthstarDLL/core/math/color.h
+++ b/NorthstarDLL/core/math/color.h
@@ -57,7 +57,7 @@ struct SourceColor
//-----------------------------------------------------------------------------
class Color
{
- public:
+public:
Color(int r, int g, int b, int a = 255)
{
_color[0] = (unsigned char)r;
@@ -169,7 +169,7 @@ class Color
return SourceColor(_color[0], _color[1], _color[2], _color[3]);
}
- private:
+private:
unsigned char _color[4];
};