Pre bindless
This commit is contained in:
@@ -24,6 +24,7 @@ Transform::Transform(Vector position, Quaternion rotation, Vector scale)
|
||||
: position(Vector4(position, 0)), rotation(rotation), scale(Vector4(scale, 0)) {}
|
||||
Transform::Transform(Quaternion rotation, Vector scale) : position(Vector4(0, 0, 0, 0)), rotation(rotation), scale(Vector4(scale, 0)) {}
|
||||
Transform::~Transform() {}
|
||||
|
||||
Matrix4 Transform::toMatrix() const {
|
||||
// TODO: actual calculations, SIMD
|
||||
Matrix4 result = Matrix4(1);
|
||||
|
||||
@@ -16,6 +16,7 @@ class Transform {
|
||||
Transform(Quaternion rotation, Vector scale);
|
||||
~Transform();
|
||||
Matrix4 toMatrix() const;
|
||||
void fromMatrix(Matrix4 mat);
|
||||
Vector transformPosition(const Vector& v) const;
|
||||
|
||||
Vector getPosition() const;
|
||||
|
||||
Reference in New Issue
Block a user