Initial commit.

* Beginning reconstruction of Source SDK.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe
2016-12-19 16:52:02 +00:00
commit 5d3e60ddd3
19 changed files with 568 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#pragma once
struct Color {
Color(int r, int g, int b, int a = 255) {
value[0] = static_cast<unsigned char>(r);
value[1] = static_cast<unsigned char>(g);
value[2] = static_cast<unsigned char>(b);
value[3] = static_cast<unsigned char>(a);
}
unsigned char value[4];
};

View File

@@ -0,0 +1,23 @@
#pragma once
typedef float VMatrix[4][4];
class matrix3x4_t {
public:
matrix3x4_t() {};
matrix3x4_t(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23) {
m_flMatVal[0][0] = m00; m_flMatVal[0][1] = m01; m_flMatVal[0][2] = m02; m_flMatVal[0][3] = m03;
m_flMatVal[1][0] = m10; m_flMatVal[1][1] = m11; m_flMatVal[1][2] = m12; m_flMatVal[1][3] = m13;
m_flMatVal[2][0] = m20; m_flMatVal[2][1] = m21; m_flMatVal[2][2] = m22; m_flMatVal[2][3] = m23;
};
float* operator[](int i) {
return m_flMatVal[i];
}
const float* operator[](int i) const {
return m_flMatVal[i];
}
float m_flMatVal[3][4];
};