mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-09 22:06:09 +01:00
18 lines
393 B
Java
18 lines
393 B
Java
|
package com.jozufozu.flywheel.backend;
|
||
|
|
||
|
import com.jozufozu.flywheel.backend.gl.shader.GlProgram;
|
||
|
|
||
|
import net.minecraft.util.ResourceLocation;
|
||
|
|
||
|
public interface IShaderContext<P extends GlProgram> {
|
||
|
|
||
|
P getProgram(ResourceLocation loc);
|
||
|
|
||
|
/**
|
||
|
* Load all programs associated with this context. This might be just one, if the context is very specialized.
|
||
|
*/
|
||
|
void load();
|
||
|
|
||
|
void delete();
|
||
|
}
|