summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r--libdimension-python/dimension.pyx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 48e8de1..ac1a80b 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -834,6 +834,11 @@ cdef class Texture:
self._texture.finish = finish._finish
dmnsn_finish_incref(&self._texture.finish)
+ def transform(self, Matrix trans not None):
+ """Transform a texture."""
+ self._texture.trans = dmnsn_matrix_mul(trans._m, self._texture.trans)
+ return self
+
cdef _Texture(dmnsn_texture *texture):
cdef Texture self = Texture.__new__(Texture)
self._texture = texture