Interface ShaderManager
public interface ShaderManager
Shader manager
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classShader tag.static interfaceA supplier of shader tag.static enumRepresents BetterHud's shader files. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShaderManager.ShaderTagSupplierEmpty tag supplier.static final ShaderManager.ShaderTagEmpty tag. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstant(@NotNull String key, @NotNull String value) Defines constant (#Define)voidaddTagSupplier(@NotNull ShaderManager.ShaderType type, ShaderManager.ShaderTagSupplier supplier) Adds shader tag to some shader file.static @NotNull ShaderManager.ShaderTagnewTag()Creates new shader tag
-
Field Details
-
EMPTY_TAG
Empty tag. -
EMPTY_SUPPLIER
Empty tag supplier.
-
-
Method Details
-
addConstant
-
addTagSupplier
void addTagSupplier(@NotNull @NotNull ShaderManager.ShaderType type, @NotNull ShaderManager.ShaderTagSupplier supplier) Adds shader tag to some shader file. Default: #GenerateOtherMainMethod with an empty list in all files.- Parameters:
type- type of shadersupplier- tag function
-
newTag
-