private void updateTransform() {
   if (transformNeedsUpdate) {
     nativeGetTransform(IntercomHelper.getBuffer());
     transformCache = IntercomHelper.decodeTransform();
     inverseTransformCache = transformCache.getInverse();
     transformNeedsUpdate = false;
   }
 }
Exemple #2
0
 private void sync() {
   nativeGetViewport(IntercomHelper.getBuffer());
   this.viewport = IntercomHelper.decodeFloatRect();
   this.size = IntercomHelper.decodeVector2f(nativeGetSize());
   this.center = IntercomHelper.decodeVector2f(nativeGetCenter());
   this.rotation = nativeGetRotation();
   transformNeedsUpdate = true;
 }