mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Error if a non-2D/affine matrix is used with auto-batched draws, since they perform CPU-side matrix transforms on 2-component vectors.
--HG-- branch : minor
This commit is contained in:
@@ -195,6 +195,13 @@ public:
|
||||
template <typename Vdst, typename Vsrc>
|
||||
void transform(Vdst *dst, const Vsrc *src, int size) const;
|
||||
|
||||
/**
|
||||
* Gets whether this matrix is an affine 2D transform (if the only non-
|
||||
* identity elements are the upper-left 4x4 and 2 translation values in the
|
||||
* 4th column).
|
||||
**/
|
||||
bool isAffine2DTransform() const;
|
||||
|
||||
/**
|
||||
* Computes and returns the inverse of the matrix.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user