Exemplo n.º 1
0
 private void updateTransform() {
   if (transformNeedsUpdate) {
     nativeGetTransform(IntercomHelper.getBuffer());
     transformCache = IntercomHelper.decodeTransform();
     inverseTransformCache = transformCache.getInverse();
     transformNeedsUpdate = false;
   }
 }
Exemplo n.º 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;
 }