private boolean triangleIsVisible(Triangle t) { return (visibleLayers.nextSetBit(t.meshPartIndex) != -1); }
/** * Clean up Components belonging to the Entity * @param e Entity to clear components for. */ public void removeComponentsOfEntity(Entity e) { Bits componentBits = e.getComponentBits(); for (int i = componentBits.nextSetBit(0); i >= 0; i = componentBits.nextSetBit(i+1)) { removeComponent(e.id, i); } componentBits.clear(); }
/** * Fills an array with Components belonging to the specified Entity. * * @param e Entity to get Components with. * @param array Array of Components to fill. */ public void getComponents(Entity e, Array<Component> array) { Bits componentBits = e.getComponentBits(); for (int i = componentBits.nextSetBit(0); i >= 0; i = componentBits.nextSetBit(i+1)) { array.add(componentsByType.get(i).get(e.id)); } }
for (int i = filter.allSet.nextSetBit(0); i >= 0; i = filter.allSet.nextSetBit(i+1)) { if(!componentBits.get(i)) { interested = false;