|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.shader.UniformBindingManager
public class UniformBindingManager
UniformBindingManager
helps RenderManager
to manage
uniform bindings
.
The updateUniformBindings(java.util.List)
will update
a given list of uniforms based on the current state
of the manager.
Constructor Summary | |
---|---|
UniformBindingManager()
|
Method Summary | |
---|---|
void |
setCamera(Camera cam,
Matrix4f viewMatrix,
Matrix4f projMatrix,
Matrix4f viewProjMatrix)
|
void |
setTimer(Timer timer)
Set the timer that should be used to query the time based UniformBinding s for material world parameters. |
void |
setViewPort(int viewX,
int viewY,
int viewWidth,
int viewHeight)
|
void |
setWorldMatrix(Matrix4f mat)
Internal use only. |
void |
updateUniformBindings(java.util.List<Uniform> params)
Internal use only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniformBindingManager()
Method Detail |
---|
public void updateUniformBindings(java.util.List<Uniform> params)
uniform bindings
based on the current world state.
public void setWorldMatrix(Matrix4f mat)
Material#render(com.jme3.scene.Geometry, com.jme3.renderer.RenderManager)
.
Using #renderGeometry(com.jme3.scene.Geometry)
will
override this value.
mat
- The world matrix to setpublic void setTimer(Timer timer)
UniformBinding
s for material world parameters.
timer
- The timer to query time world parameterspublic void setCamera(Camera cam, Matrix4f viewMatrix, Matrix4f projMatrix, Matrix4f viewProjMatrix)
public void setViewPort(int viewX, int viewY, int viewWidth, int viewHeight)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |