Top Description Constructors Methods
com.jogamp.opengl.util.glsl.sdk

public abstract Class CompileShader

extends Object
Class Inheritance
Known Direct Subclasses
com.jogamp.opengl.util.glsl.sdk.CompileShaderNVidia
Imports
com.jogamp.common.util.IOUtil, com.jogamp.opengl.*, com.jogamp.opengl.util.glsl.*, java.io.*, java.net.*

Precompiles a shader into a vendor binary format. Input is the resource name of the shader, such as "com/jogamp/opengl/impl/glsl/fixed/shader/a.fp". Output is "com/jogamp/opengl/impl/glsl/fixed/shader/bin/nvidia/a.bfp". All path and suffixes are determined by the ShaderCode class, which ensures runtime compatibility.
See Also
com.jogamp.opengl.util.glsl.ShaderCode

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected static String
basename(final String path)

protected static String
dirname(final String path)

public abstract int
public abstract String
public abstract File
public abstract String
public void
processOneShader(final String resourceName)

public void
processOneShader(final String resourceName, final String outName, final int type)

public void
run(final String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CompileShaderback to summary
public CompileShader()

Method Detail

basenameback to summary
protected static String basename(final String path)
dirnameback to summary
protected static String dirname(final String path)
getBinaryFormatback to summary
public abstract int getBinaryFormat()
getFragmentShaderCompilerback to summary
public abstract String getFragmentShaderCompiler()
getSDKCompilerDirback to summary
public abstract File getSDKCompilerDir()
getVertexShaderCompilerback to summary
public abstract String getVertexShaderCompiler()
processOneShaderback to summary
public void processOneShader(final String resourceName) throws IOException, UnsupportedEncodingException, InterruptedException
processOneShaderback to summary
public void processOneShader(final String resourceName, final String outName, final int type) throws IOException, UnsupportedEncodingException, InterruptedException
runback to summary
public void run(final String[] args)