mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-09 05:46:26 +01:00
f615825846
- Rename Client to FlywheelClient - Remove Shadow plugin - Remove generated source set - Remove unused properties in gradle.properties - Organize all imports - Thanks for the list pepper!
24 lines
548 B
Java
24 lines
548 B
Java
package com.jozufozu.flywheel.backend;
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
import com.jozufozu.flywheel.backend.gl.shader.GlProgram;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public interface IShaderContext<P extends GlProgram> {
|
|
|
|
default P getProgram(ResourceLocation loc) {
|
|
return this.getProgramSupplier(loc)
|
|
.get();
|
|
}
|
|
|
|
Supplier<P> getProgramSupplier(ResourceLocation loc);
|
|
|
|
/**
|
|
* Load all programs associated with this context. This might be just one, if the context is very specialized.
|
|
*/
|
|
void load();
|
|
|
|
void delete();
|
|
}
|