/** Returns the name of the specified style object, or null if it is not in the skin. This compares potentially every style * object in the skin of the same type as the specified style, which may be a somewhat expensive operation. */ public String find (Object resource) { if (resource == null) throw new IllegalArgumentException("style cannot be null."); ObjectMap<String, Object> typeResources = resources.get(resource.getClass()); if (typeResources == null) return null; return typeResources.findKey(resource, true); }
/** Returns the name of the specified style object, or null if it is not in the skin. This compares potentially every style * object in the skin of the same type as the specified style, which may be a somewhat expensive operation. */ public String find (Object resource) { if (resource == null) throw new IllegalArgumentException("style cannot be null."); ObjectMap<String, Object> typeResources = resources.get(resource.getClass()); if (typeResources == null) return null; return typeResources.findKey(resource, true); }
protected LightProperties nextSpot () { if (!spotCameraIterator.hasNext()) return null; ObjectMap.Entry<SpotLight, LightProperties> e = spotCameraIterator.next(); currentLight = e.key; currentLightProperties = e.value; LightProperties lp = e.value; if (!lightFilter.filter(spotCameras.findKey(lp, true), lp.camera, this.camera)) { return nextSpot(); } processViewport(lp, true); return lp; }
protected LightProperties nextPoint () { if (!pointCameraIterator.hasNext() && currentPointSide > 5) return null; if (currentPointSide > 5) currentPointSide = 0; if (currentPointSide == 0) { ObjectMap.Entry<PointLight, PointLightProperties> e = pointCameraIterator.next(); currentLight = e.key; currentPointProperties = e.value; } if (currentPointProperties.properties.containsKey(Cubemap.CubemapSide.values()[currentPointSide])) { LightProperties lp = currentPointProperties.properties.get(Cubemap.CubemapSide.values()[currentPointSide]); currentLightProperties = lp; currentPointSide += 1; if (!lightFilter.filter(pointCameras.findKey(currentPointProperties, true), lp.camera, this.camera)) { return nextPoint(); } processViewport(lp, true); return lp; } currentPointSide += 1; return nextPoint(); }
/** Returns the name of the specified style object, or null if it is not in the skin. This compares potentially every style * object in the skin of the same type as the specified style, which may be a somewhat expensive operation. */ public String find (Object resource) { if (resource == null) throw new IllegalArgumentException("style cannot be null."); ObjectMap<String, Object> typeResources = resources.get(resource.getClass()); if (typeResources == null) return null; return typeResources.findKey(resource, true); }