public class Texture extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Texture() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
defaultFormat()
Returns the default value of the format
|
java.lang.Integer |
defaultInternalFormat()
Returns the default value of the internalFormat
|
java.lang.Integer |
defaultTarget()
Returns the default value of the target
|
java.lang.Integer |
defaultType()
Returns the default value of the type
|
java.lang.Integer |
getFormat()
The texture's format.
|
java.lang.Integer |
getInternalFormat()
The texture's internal format.
|
java.lang.String |
getSampler()
The ID of the sampler used by this texture.
|
java.lang.String |
getSource()
The ID of the image used by this texture.
|
java.lang.Integer |
getTarget()
The target that the WebGL texture should be bound to.
|
java.lang.Integer |
getType()
Texel datatype.
|
void |
setFormat(java.lang.Integer format)
The texture's format.
|
void |
setInternalFormat(java.lang.Integer internalFormat)
The texture's internal format.
|
void |
setSampler(java.lang.String sampler)
The ID of the sampler used by this texture.
|
void |
setSource(java.lang.String source)
The ID of the image used by this texture.
|
void |
setTarget(java.lang.Integer target)
The target that the WebGL texture should be bound to.
|
void |
setType(java.lang.Integer type)
Texel datatype.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setFormat(java.lang.Integer format)
format - The format to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Integer getFormat()
public java.lang.Integer defaultFormat()
getFormat()public void setInternalFormat(java.lang.Integer internalFormat)
internalFormat - The internalFormat to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Integer getInternalFormat()
public java.lang.Integer defaultInternalFormat()
getInternalFormat()public void setSampler(java.lang.String sampler)
sampler - The sampler to setjava.lang.NullPointerException - If the given value is nullpublic java.lang.String getSampler()
public void setSource(java.lang.String source)
source - The source to setjava.lang.NullPointerException - If the given value is nullpublic java.lang.String getSource()
public void setTarget(java.lang.Integer target)
target - The target to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Integer getTarget()
public java.lang.Integer defaultTarget()
getTarget()public void setType(java.lang.Integer type)
type - The type to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Integer getType()
public java.lang.Integer defaultType()
getType()Copyright © 2024. All Rights Reserved.