Skip to content

GlslExport

final class GlslExport
Package: dev.joid.test.shader · Module: tool-testkit · Source: GlslExport.java

Writes every built-in shader of JOID translated to every GLSL dialect, to check a translation with the compilers of each dialect.

ReturnsSignatureSummary
voidmain(String[] args) staticExports into the folder given as the only argument; with another number of arguments, prints its usage and exits with 2.
voidexport(File directory) staticWrites, in one subfolder per dialect, the .vert and .frag of every built-in shader and of its line variant.

void main(String[] args) static

Exports into the folder given as the only argument; with another number of arguments, prints its usage and exits with 2.

void export(File directory) static

Throws:

  • IOException: The folder … cannot be created, check that its parent folder can be written

Writes, in one subfolder per dialect, the .vert and .frag of every built-in shader and of its line variant. Throws an IOException when a subfolder cannot be created.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page