public class ShaderError extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPILE_ERROR
Indicates that an error occurred while compiling a shader.
|
static int |
LINK_ERROR
Indicates that an error occurred while linking a shader.
|
static int |
NO_ERROR
Indicates that no error occurred.
|
static int |
SHADER_ATTRIBUTE_LOOKUP_ERROR
Indicates a error in looking up the location of a uniform
shader attribute name within a given shader program.
|
static int |
SHADER_ATTRIBUTE_NAME_NOT_SET_ERROR
Indicates a error caused by a ShaderAttribute whose name does not
appear in the list of shader attribute names in the corresponding
ShaderProgram object.
|
static int |
SHADER_ATTRIBUTE_TYPE_ERROR
Indicates a error in the type of the attribute versus what the shader
program was expecting.
|
static int |
UNSUPPORTED_LANGUAGE_ERROR
Indicates that the specified shading language is not supported
on the screen display device.
|
static int |
VERTEX_ATTRIBUTE_LOOKUP_ERROR
Indicates a error in looking up a vertex attribute
name within a given shader program.
|
Constructor and Description |
---|
ShaderError()
Constructs a new ShaderError object indicating no error.
|
ShaderError(int errorCode,
String errorMessage)
Constructs a new ShaderError object with the given error code
and message.
|
Modifier and Type | Method and Description |
---|---|
Canvas3D |
getCanvas3D()
Returns the canvas associated with this shader error.
|
String |
getDetailMessage()
Returns the detail message for this shader error.
|
int |
getErrorCode()
Returns the error code for this shader error.
|
String |
getErrorMessage()
Returns the error message for this shader error.
|
Geometry |
getGeometry()
Returns the geometry associated with this shader error.
|
Shader |
getShader()
Returns the shader object associated with this shader error.
|
ShaderAppearance |
getShaderAppearance()
Returns the shader appearance associated with this shader error.
|
ShaderAttribute |
getShaderAttribute()
Returns the shader attribute associated with this shader error.
|
ShaderAttributeSet |
getShaderAttributeSet()
Returns the shader attribute set associated with this shader error.
|
ShaderProgram |
getShaderProgram()
Returns the shader program associated with this shader error.
|
Shape3D |
getShape3D()
Returns the shape node associated with this shader error.
|
void |
printVerbose()
Prints a verbose error report to System.err.
|
void |
printVerbose(PrintStream printStream)
Prints a verbose error report to the specified PrintStream.
|
void |
setCanvas3D(Canvas3D canvas)
Sets the canvas associated with this shader error.
|
void |
setDetailMessage(String detailMessage)
Sets the detail message for this shader error.
|
void |
setErrorCode(int errorCode)
Sets the error code for this shader error.
|
void |
setErrorMessage(String errorMessage)
Sets the error message for this shader error.
|
void |
setGeometry(Geometry geometry)
Sets the geometry associated with this shader error.
|
void |
setShader(Shader shader)
Sets the shader object associated with this shader error.
|
void |
setShaderAppearance(ShaderAppearance shaderApp)
Sets the shader appearance associated with this shader error.
|
void |
setShaderAttribute(ShaderAttribute shaderAttribute)
Sets the shader attribute associated with this shader error.
|
void |
setShaderAttributeSet(ShaderAttributeSet shaderAttributeSet)
Sets the shader attribute set associated with this shader error.
|
void |
setShaderProgram(ShaderProgram shaderProgram)
Sets the shader program associated with this shader error.
|
void |
setShape3D(Shape3D shape)
Sets the shape node associated with this shader error.
|
String |
toString()
Returns a short string that describes this shader error.
|
public static final int NO_ERROR
public static final int COMPILE_ERROR
public static final int LINK_ERROR
public static final int VERTEX_ATTRIBUTE_LOOKUP_ERROR
public static final int SHADER_ATTRIBUTE_LOOKUP_ERROR
public static final int SHADER_ATTRIBUTE_NAME_NOT_SET_ERROR
public static final int SHADER_ATTRIBUTE_TYPE_ERROR
public static final int UNSUPPORTED_LANGUAGE_ERROR
public ShaderError()
NO_ERROR
. All other fields
are initialized to null, including the error message.public ShaderError(int errorCode, String errorMessage)
errorCode
- the error code for this shader error.errorMessage
- a short error message describing this
shader error.public void printVerbose()
public void printVerbose(PrintStream printStream)
printStream
- the print stream on which to print the error
report.public void setErrorCode(int errorCode)
errorCode
- the error code for this shader error.public int getErrorCode()
public void setErrorMessage(String errorMessage)
errorMessage
- a short error message describing this
shader error.public String getErrorMessage()
public void setDetailMessage(String detailMessage)
detailMessage
- a detailed message describing this shader
error in more detail.public String getDetailMessage()
public void setCanvas3D(Canvas3D canvas)
canvas
- the canvas associated with this shader error.public Canvas3D getCanvas3D()
public void setShape3D(Shape3D shape)
shape
- the shape node associated with this shader error.public Shape3D getShape3D()
public void setGeometry(Geometry geometry)
geometry
- the geometry associated with this shader error.public Geometry getGeometry()
public void setShaderAppearance(ShaderAppearance shaderApp)
shaderApp
- the shader appearance associated with this shader error.public ShaderAppearance getShaderAppearance()
public void setShaderProgram(ShaderProgram shaderProgram)
shaderProgram
- the shader program associated with this shader error.public ShaderProgram getShaderProgram()
public void setShader(Shader shader)
shader
- the shader object associated with this shader error.public Shader getShader()
public void setShaderAttributeSet(ShaderAttributeSet shaderAttributeSet)
shaderAttributeSet
- the shader attribute set associated with this shader error.public ShaderAttributeSet getShaderAttributeSet()
public void setShaderAttribute(ShaderAttribute shaderAttribute)
shaderAttribute
- the shader attribute associated with this shader error.public ShaderAttribute getShaderAttribute()
public String toString()
Copyright © 2016–2022 SciJava. All rights reserved.