- create a renderer backend based on softpoly's drawers

This commit is contained in:
Magnus Norddahl 2019-05-22 06:29:52 +02:00
commit 0eda298db2
21 changed files with 1317 additions and 9 deletions

View file

@ -42,7 +42,7 @@ Mat4f Mat4f::Identity()
return m;
}
Mat4f Mat4f::FromValues(float *matrix)
Mat4f Mat4f::FromValues(const float *matrix)
{
Mat4f m;
memcpy(m.Matrix, matrix, sizeof(m.Matrix));

View file

@ -115,7 +115,7 @@ class Mat4f
public:
static Mat4f Null();
static Mat4f Identity();
static Mat4f FromValues(float *matrix);
static Mat4f FromValues(const float *matrix);
static Mat4f Transpose(const Mat4f &matrix);
static Mat4f Translate(float x, float y, float z);
static Mat4f Scale(float x, float y, float z);