From 598e252b9ee92b9e73e2f6d3ecbcd082cc74dd23 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Wed, 10 Aug 2022 23:00:30 +0200 Subject: [PATCH] fix: add missing extension --- Diya/MatrixTransform2x3.extension.st | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Diya/MatrixTransform2x3.extension.st diff --git a/Diya/MatrixTransform2x3.extension.st b/Diya/MatrixTransform2x3.extension.st new file mode 100644 index 0000000..d67eac9 --- /dev/null +++ b/Diya/MatrixTransform2x3.extension.st @@ -0,0 +1,15 @@ +Extension { #name : #MatrixTransform2x3 } + +{ #category : #'*Diya' } +MatrixTransform2x3 >> asGLBuffer [ + |buffer| + buffer := FFIExternalArray externalNewType: #float size: 9. + 1 to: 6 do:[:i| + buffer at:1 put: (self at:i)]. + buffer + at: 7 put: 0; + at: 8 put: 0; + at: 9 put: 1. + buffer autoRelease. + ^buffer +]