io.github.douira.glsl_preprocessor.fs.StringFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glsl-preprocessor Show documentation
Show all versions of glsl-preprocessor Show documentation
GLSL Preprocessing with the C Preprocessor in Java - based on JCPP
The newest version!
package io.github.douira.glsl_preprocessor.fs;
import io.github.douira.glsl_preprocessor.*;
class StringFile implements VirtualFile {
private final String content;
public StringFile(String content) {
this.content = content;
}
@Override
public boolean isFile() {
return true;
}
@Override
public Source getSource() {
return new StringLexerSource(content);
}
}