public RenderState getProperRenderState(final StateType type, final RenderState current) { final RenderContext context = ContextManager.getCurrentContext(); // first look up in enforced states final RenderState state = context.hasEnforcedStates() ? context.getEnforcedState(type) : null; // Not there? Use the state we received if (state == null) { if (current != null) { return current; } else { return defaultStateList.get(type); } } else { return state; } }
public RenderState getProperRenderState(final StateType type, final RenderState current) { final RenderContext context = ContextManager.getCurrentContext(); // first look up in enforced states final RenderState state = context.hasEnforcedStates() ? context.getEnforcedState(type) : null; // Not there? Use the state we received if (state == null) { if (current != null) { return current; } else { return defaultStateList.get(type); } } else { return state; } }
RenderState setState = context.hasEnforcedStates() ? context.getEnforcedState(StateType.Cull) : null; if (setState == null) { final RenderState oldCullState = context.getEnforcedState(StateType.Cull); final RenderState oldZState = context.getEnforcedState(StateType.ZBuffer);
RenderState setState = context.hasEnforcedStates() ? context.getEnforcedState(StateType.Cull) : null; if (setState == null) { final RenderState oldCullState = context.getEnforcedState(StateType.Cull); final RenderState oldZState = context.getEnforcedState(StateType.ZBuffer);