some clean up in the ShaderGenerator
This commit is contained in:
parent
5e3e8fbd6e
commit
9500b43aa9
@ -48,11 +48,17 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public abstract class ShaderGenerator {
|
public abstract class ShaderGenerator {
|
||||||
|
|
||||||
//the asset manager
|
/**
|
||||||
|
* the asset manager
|
||||||
|
*/
|
||||||
protected AssetManager assetManager;
|
protected AssetManager assetManager;
|
||||||
//indentation value for generation
|
/**
|
||||||
|
* indentation value for generation
|
||||||
|
*/
|
||||||
protected int indent;
|
protected int indent;
|
||||||
//the technique to use for the shader generation
|
/**
|
||||||
|
* the technique to use for the shader generation
|
||||||
|
*/
|
||||||
protected Technique technique = null;
|
protected Technique technique = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -163,6 +169,7 @@ public abstract class ShaderGenerator {
|
|||||||
* @see ShaderGenerator#generateNodeMainSection
|
* @see ShaderGenerator#generateNodeMainSection
|
||||||
*
|
*
|
||||||
* @param loadedSource the actual source code loaded for this node.
|
* @param loadedSource the actual source code loaded for this node.
|
||||||
|
* @param shaderPath path the the shader file
|
||||||
* @param sourceDeclaration the Shader declaration part string builder.
|
* @param sourceDeclaration the Shader declaration part string builder.
|
||||||
* @param source the Shader main part StringBuilder.
|
* @param source the Shader main part StringBuilder.
|
||||||
* @param shaderNode the shader node.
|
* @param shaderNode the shader node.
|
||||||
@ -231,9 +238,9 @@ public abstract class ShaderGenerator {
|
|||||||
* @see ShaderNode#getDefinition()
|
* @see ShaderNode#getDefinition()
|
||||||
* @see ShaderNodeDefinition#getType()
|
* @see ShaderNodeDefinition#getType()
|
||||||
*
|
*
|
||||||
|
* @param nodeDecalarationSource the declaration part of the node
|
||||||
* @param source the StringBuilder to append generated code.
|
* @param source the StringBuilder to append generated code.
|
||||||
* @param shaderNode the shaderNode.
|
* @param shaderNode the shaderNode.
|
||||||
* @param nodeSource the declaration part of the loaded shaderNode source.
|
|
||||||
* @param info the ShaderGenerationInfo.
|
* @param info the ShaderGenerationInfo.
|
||||||
*/
|
*/
|
||||||
protected abstract void generateDeclarativeSection(StringBuilder source, ShaderNode shaderNode, String nodeDecalarationSource, ShaderGenerationInfo info);
|
protected abstract void generateDeclarativeSection(StringBuilder source, ShaderNode shaderNode, String nodeDecalarationSource, ShaderGenerationInfo info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user