|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.ShaderError
public class ShaderError
ShaderError is a container object that holds the details of a runtime error that occurs while compiling or executing a programmable shader.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ShaderError()
Constructs a new ShaderError object indicating no error. |
|
ShaderError(int errorCode,
java.lang.String errorMessage)
Constructs a new ShaderError object with the given error code and message. |
|
| Method Summary | |
|---|---|
Canvas3D |
getCanvas3D()
Returns the canvas associated with this shader error. |
java.lang.String |
getDetailMessage()
Returns the detail message for this shader error. |
int |
getErrorCode()
Returns the error code for this shader error. |
java.lang.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(java.io.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(java.lang.String detailMessage)
Sets the detail message for this shader error. |
void |
setErrorCode(int errorCode)
Sets the error code for this shader error. |
void |
setErrorMessage(java.lang.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. |
java.lang.String |
toString()
Returns a short string that describes this shader error. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public ShaderError()
NO_ERROR. All other fields
are initialized to null, including the error message.
public ShaderError(int errorCode,
java.lang.String errorMessage)
errorCode - the error code for this shader error.errorMessage - a short error message describing this
shader error.| Method Detail |
|---|
public void printVerbose()
public void printVerbose(java.io.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(java.lang.String errorMessage)
errorMessage - a short error message describing this
shader error.public java.lang.String getErrorMessage()
public void setDetailMessage(java.lang.String detailMessage)
detailMessage - a detailed message describing this shader
error in more detail.public java.lang.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 java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||