mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 11:28:22 +01:00
fix: add missing extension
This commit is contained in:
parent
664e2169f3
commit
598e252b9e
15
Diya/MatrixTransform2x3.extension.st
Normal file
15
Diya/MatrixTransform2x3.extension.st
Normal file
@ -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
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user