private void updateTransform() {
   if (transformNeedsUpdate) {
     nativeGetTransform(IntercomHelper.getBuffer());
     transformCache = IntercomHelper.decodeTransform();
     inverseTransformCache = transformCache.getInverse();
     transformNeedsUpdate = false;
   }
 }
示例#2
0
文件: View.java 项目: siwiwit/JSFML
 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;
 }