Class ShaderPool
java.lang.Object
dev.prozilla.pine.common.asset.pool.AssetPool<Shader>
dev.prozilla.pine.common.asset.pool.TextAssetPool<Shader>
dev.prozilla.pine.common.asset.pool.ShaderPool
- All Implemented Interfaces:
Destructible
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.asset.pool.AssetPool
eventDispatcher, NOT_FOUND_ERROR, UNKNOWN_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload(Shader.Type type, String path) loadComputeShader(String path) loadFragmentShader(String path) loadGeometryShader(String path) loadVertexShader(String path) protected ShaderParses the text file as an asset.protected Stringpreprocess(StringBuilder stringBuilder) Preprocesses the content of the text file.Methods inherited from class dev.prozilla.pine.common.asset.pool.TextAssetPool
createAsset, normalizeMethods inherited from class dev.prozilla.pine.common.asset.pool.AssetPool
addListener, count, createKey, destroy, fail, fail, getAssets, load, prepareNext, printInfo, printInfo, remove, remove, removeListener
-
Constructor Details
-
ShaderPool
public ShaderPool()
-
-
Method Details
-
loadVertexShader
-
loadFragmentShader
-
loadComputeShader
-
loadGeometryShader
-
load
-
load
-
preprocess
Description copied from class:TextAssetPoolPreprocesses the content of the text file.- Overrides:
preprocessin classTextAssetPool<Shader>- Parameters:
stringBuilder- The string builder containing the content of the text file.- Returns:
- The preprocessed content of the text file.
-
parse
Description copied from class:TextAssetPoolParses the text file as an asset.- Specified by:
parsein classTextAssetPool<Shader>- Parameters:
path- The path of the text file. Mostly used for debugging purposes.content- The content of the text file- Returns:
- The new asset
-