public class Technique extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Technique() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(java.lang.String key,
java.lang.String value)
Add the given attributes.
|
void |
addParameters(java.lang.String key,
TechniqueParameters value)
Add the given parameters.
|
void |
addUniforms(java.lang.String key,
java.lang.String value)
Add the given uniforms.
|
java.util.Map<java.lang.String,java.lang.String> |
defaultAttributes()
Returns the default value of the attributes
|
java.util.Map<java.lang.String,TechniqueParameters> |
defaultParameters()
Returns the default value of the parameters
|
TechniqueStates |
defaultStates()
Returns the default value of the states
|
java.util.Map<java.lang.String,java.lang.String> |
defaultUniforms()
Returns the default value of the uniforms
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A dictionary object of strings that maps GLSL attribute names to
technique parameter IDs.
|
java.util.Map<java.lang.String,TechniqueParameters> |
getParameters()
A dictionary object of technique.parameters objects.
|
java.lang.Integer |
getProgram()
The index of the program.
|
TechniqueStates |
getStates()
Fixed-function rendering states.
|
java.util.Map<java.lang.String,java.lang.String> |
getUniforms()
A dictionary object of strings that maps GLSL uniform names to
technique parameter IDs.
|
void |
removeAttributes(java.lang.String key)
Remove the given attributes.
|
void |
removeParameters(java.lang.String key)
Remove the given parameters.
|
void |
removeUniforms(java.lang.String key)
Remove the given uniforms.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A dictionary object of strings that maps GLSL attribute names to
technique parameter IDs.
|
void |
setParameters(java.util.Map<java.lang.String,TechniqueParameters> parameters)
A dictionary object of technique.parameters objects.
|
void |
setProgram(java.lang.Integer program)
The index of the program.
|
void |
setStates(TechniqueStates states)
Fixed-function rendering states.
|
void |
setUniforms(java.util.Map<java.lang.String,java.lang.String> uniforms)
A dictionary object of strings that maps GLSL uniform names to
technique parameter IDs.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setParameters(java.util.Map<java.lang.String,TechniqueParameters> parameters)
parameters - The parameters to setpublic java.util.Map<java.lang.String,TechniqueParameters> getParameters()
public void addParameters(java.lang.String key,
TechniqueParameters value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeParameters(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,TechniqueParameters> defaultParameters()
getParameters()public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - The attributes to setpublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void addAttributes(java.lang.String key,
java.lang.String value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeAttributes(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,java.lang.String> defaultAttributes()
getAttributes()public void setProgram(java.lang.Integer program)
program - The program to setjava.lang.NullPointerException - If the given value is nullpublic java.lang.Integer getProgram()
public void setUniforms(java.util.Map<java.lang.String,java.lang.String> uniforms)
uniforms - The uniforms to setpublic java.util.Map<java.lang.String,java.lang.String> getUniforms()
public void addUniforms(java.lang.String key,
java.lang.String value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeUniforms(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,java.lang.String> defaultUniforms()
getUniforms()public void setStates(TechniqueStates states)
states - The states to setpublic TechniqueStates getStates()
public TechniqueStates defaultStates()
getStates()Copyright © 2022. All Rights Reserved.