Skip to content

BorderShader

final class BorderShader
Extends: ShaderProgram
Package: dev.joid.lib.shader.impl · Module: core · Source: BorderShader.java

The shader of the outline that BorderShaderPass draws around the alpha of a texture.

ReturnsSignatureSummary
BorderShaderinst() factoryReturns the shared shader.

ReturnsSignatureSummary
voidbind(float borderWidth, Color borderColor, float texelW, float texelH, boolean corners, BorderMode mode, float rectX1, float rectY1, float rectX2, float rectY2)Binds the shader with a stroke of borderWidth texels in borderColor, gradient and animated colors included, the size of one texel texelW, texelH on 1, the corners and mode of BorderShaderPass, and the area rectX1, rectY1, rectX2, rectY2.
Inherited from ShaderProgram (7)

delete · unbind · getShader · canDraw · isAvailable · gradient · uniformGradient

BorderShader inst() factory

Returns the shared shader.

void bind(float borderWidth, Color borderColor, float texelW, float texelH, boolean corners, BorderMode mode, float rectX1, float rectY1, float rectX2, float rectY2)

Binds the shader with a stroke of borderWidth texels in borderColor, gradient and animated colors included, the size of one texel texelW, texelH on 1, the corners and mode of BorderShaderPass, and the area rectX1, rectY1, rectX2, rectY2.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page