.setSelected(as == null || as.getDestinationFunctionRGB() == BlendState.DestinationFunction.One); if (getTexturePanel().isVisible()) { Texture tex = null;
if (enabled) { final int glSrcRGB = getGLSrcValue(state.getSourceFunctionRGB(), caps); final int glDstRGB = getGLDstValue(state.getDestinationFunctionRGB(), caps); final int glSrcAlpha = getGLSrcValue(state.getSourceFunctionAlpha(), caps); final int glDstAlpha = getGLDstValue(state.getDestinationFunctionAlpha(), caps); if (enabled) { final int glSrcRGB = getGLSrcValue(state.getSourceFunctionRGB(), caps); final int glDstRGB = getGLDstValue(state.getDestinationFunctionRGB(), caps); final int glSrcAlpha = getGLSrcValue(state.getSourceFunctionAlpha(), caps); final int glDstAlpha = getGLDstValue(state.getDestinationFunctionAlpha(), caps);
if (enabled) { final int glSrcRGB = getGLSrcValue(state.getSourceFunctionRGB(), caps); final int glDstRGB = getGLDstValue(state.getDestinationFunctionRGB(), caps); if (caps.isSeparateBlendFunctionsSupported()) { final int glSrcAlpha = getGLSrcValue(state.getSourceFunctionAlpha(), caps); if (enabled) { final int glSrcRGB = getGLSrcValue(state.getSourceFunctionRGB(), caps); final int glDstRGB = getGLDstValue(state.getDestinationFunctionRGB(), caps); if (caps.isSeparateBlendFunctionsSupported()) { final int glSrcAlpha = getGLSrcValue(state.getSourceFunctionAlpha(), caps);
if (enabled) { final int glSrcRGB = getGLSrcValue(state.getSourceFunctionRGB(), caps); final int glDstRGB = getGLDstValue(state.getDestinationFunctionRGB(), caps); if (caps.isSeparateBlendFunctionsSupported()) { final int glSrcAlpha = getGLSrcValue(state.getSourceFunctionAlpha(), caps); if (enabled) { final int glSrcRGB = getGLSrcValue(state.getSourceFunctionRGB(), caps); final int glDstRGB = getGLDstValue(state.getDestinationFunctionRGB(), caps); if (caps.isSeparateBlendFunctionsSupported()) { final int glSrcAlpha = getGLSrcValue(state.getSourceFunctionAlpha(), caps);
protected static void applyBlendColor(final boolean enabled, final BlendState state, final BlendStateRecord record, final ContextCapabilities caps) { if (enabled) { final boolean applyConstant = state.getDestinationFunctionRGB().usesConstantColor() || state.getSourceFunctionRGB().usesConstantColor() || ((state.getDestinationFunctionAlpha().usesConstantColor() || state.getSourceFunctionAlpha() .usesConstantColor())); if (applyConstant) { final ReadOnlyColorRGBA constant = state.getConstantColor(); if (!record.isValid() || (!record.blendColor.equals(constant))) { GL14C.glBlendColor(constant.getRed(), constant.getGreen(), constant.getBlue(), constant.getAlpha()); record.blendColor.set(constant); } } } }
protected static void applyBlendColor(final boolean enabled, final BlendState state, final BlendStateRecord record, final ContextCapabilities caps) { if (enabled) { final boolean applyConstant = state.getDestinationFunctionRGB().usesConstantColor() || state.getSourceFunctionRGB().usesConstantColor() || (caps.isConstantBlendColorSupported() && (state.getDestinationFunctionAlpha() .usesConstantColor() || state.getSourceFunctionAlpha().usesConstantColor())); if (applyConstant && caps.isConstantBlendColorSupported()) { final ReadOnlyColorRGBA constant = state.getConstantColor(); if (!record.isValid() || (caps.isConstantBlendColorSupported() && !record.blendColor.equals(constant))) { ARBImaging.glBlendColor(constant.getRed(), constant.getGreen(), constant.getBlue(), constant.getAlpha()); record.blendColor.set(constant); } } } }
private static void applyBlendColor(final GL gl, final boolean enabled, final BlendState state, final BlendStateRecord record, final ContextCapabilities caps) { if (enabled) { final boolean applyConstant = state.getDestinationFunctionRGB().usesConstantColor() || state.getSourceFunctionRGB().usesConstantColor() || (caps.isConstantBlendColorSupported() && (state.getDestinationFunctionAlpha() .usesConstantColor() || state.getSourceFunctionAlpha().usesConstantColor())); if (applyConstant && caps.isConstantBlendColorSupported()) { final ReadOnlyColorRGBA constant = state.getConstantColor(); if (!record.isValid() || (caps.isConstantBlendColorSupported() && !record.blendColor.equals(constant))) { if (gl.isGL2ES2()) { gl.getGL2ES2().glBlendColor(constant.getRed(), constant.getGreen(), constant.getBlue(), constant.getAlpha()); } record.blendColor.set(constant); } } } }