/** * Adds source code to a certain pipeline. * * @param type The pipeline to control * @param source The shader source code (in GLSL). * @param defines Preprocessor defines (placed at the beginning of the shader) * @param language The shader source language, currently accepted is GLSL### * where ### is the version, e.g. GLSL100 = GLSL 1.0, GLSL330 = GLSL 3.3, etc. */ public void addSource(ShaderType type, String name, String source, String defines, String language){ ShaderSource shaderSource = new ShaderSource(type); shaderSource.setSource(source); shaderSource.setName(name); shaderSource.setLanguage(language); if (defines != null) { shaderSource.setDefines(defines); } shaderSourceList.add(shaderSource); setUpdateNeeded(); }
/** * Adds source code to a certain pipeline. * * @param type The pipeline to control * @param source The shader source code (in GLSL). */ public void addSource(ShaderType type, String name, String source, String defines){ ShaderSource shader = new ShaderSource(type); shader.setSource(source); shader.setName(name); if (defines != null) shader.setDefines(defines); shaderList.add(shader); setUpdateNeeded(); }
/** * Adds source code to a certain pipeline. * * @param type The pipeline to control * @param source The shader source code (in GLSL). * @param defines Preprocessor defines (placed at the beginning of the shader) * @param language The shader source language, currently accepted is GLSL### * where ### is the version, e.g. GLSL100 = GLSL 1.0, GLSL330 = GLSL 3.3, etc. */ public void addSource(ShaderType type, String name, String source, String defines, String language){ ShaderSource shaderSource = new ShaderSource(type); shaderSource.setSource(source); shaderSource.setName(name); shaderSource.setLanguage(language); if (defines != null) { shaderSource.setDefines(defines); } shaderSourceList.add(shaderSource); setUpdateNeeded(); }
public NativeObject createDestructableClone(){ return new ShaderSource(ShaderSource.this); } }
public NativeObject createDestructableClone(){ return new ShaderSource(ShaderSource.this); } }
public NativeObject createDestructableClone(){ return new ShaderSource(ShaderSource.this); } }