|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.imp3d.gl20.GL20Resource
de.grogra.imp3d.gl20.GL20ResourceShaderFragment
de.grogra.imp3d.gl20.GL20ResourceShaderFragmentGraytone
public class GL20ResourceShaderFragmentGraytone
Field Summary |
---|
Constructor Summary | |
---|---|
GL20ResourceShaderFragmentGraytone()
|
|
GL20ResourceShaderFragmentGraytone(float grayValue)
|
Method Summary | |
---|---|
boolean |
fragmentAffectOnAlpha()
check if this GL20ResourceShaderFragment affect the alpha
channel |
int |
getScalarIndex(de.grogra.imp3d.gl20.GL20GLSLCode code,
int channel)
get the index of the scalar value for the code that was created |
float |
getValue()
|
int |
getVector3Index(de.grogra.imp3d.gl20.GL20GLSLCode code,
int startChannel)
get the index of the vector3 for the code that was created |
int |
getVector4Index(de.grogra.imp3d.gl20.GL20GLSLCode code,
int startChannel)
get the index of the vector4 for the code that was created |
boolean |
isUpToDate()
check if this GL20ResourceShaderFragment is up to date |
boolean |
setChannelMap(ChannelMap channelMap)
set the equivalent ChannelMap to this GL20ResourceShaderFragment |
void |
setValue(float value)
|
void |
update()
update this GL20ResourceShaderFragment |
Methods inherited from class de.grogra.imp3d.gl20.GL20ResourceShaderFragment |
---|
destroy, getChannelMap, registerUser, unregisterUser |
Methods inherited from class de.grogra.imp3d.gl20.GL20Resource |
---|
getResourceClass, getResourceClassType, getResourceType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GL20ResourceShaderFragmentGraytone()
public GL20ResourceShaderFragmentGraytone(float grayValue)
Method Detail |
---|
public boolean fragmentAffectOnAlpha()
GL20ResourceShaderFragment
GL20ResourceShaderFragment
affect the alpha
channel
fragmentAffectOnAlpha
in class GL20ResourceShaderFragment
true
this GL20ResourceShader
will
affect the alpha channel
false
this GL20ResourceShader
will not
affect the alpha channelpublic int getScalarIndex(de.grogra.imp3d.gl20.GL20GLSLCode code, int channel)
GL20ResourceShaderFragment
code
that was created
getScalarIndex
in class GL20ResourceShaderFragment
code
- the class where the shader code is stored finallychannel
- the channel you want
-1
an error occurred
otherwise the index of the scalar value. Test for the CONST_BIT to get the correct
referencepublic final float getValue()
public int getVector3Index(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
GL20ResourceShaderFragment
code
that was created
getVector3Index
in class GL20ResourceShaderFragment
code
- the class where the shader code is stored finallystartChannel
- the channels you want, starting with the given channel
-1
an error occurred
otherwise the index of the vector3. Test for the CONST_BIT to get the correct
referencepublic int getVector4Index(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
GL20ResourceShaderFragment
code
that was created
getVector4Index
in class GL20ResourceShaderFragment
code
- the class where the shader code is stored finallystartChannel
- the channels you want, starting with the given channel
-1
an error occurred
otherwise the index of the vector4. Test for the CONST_BIT to get the correct
referencepublic boolean isUpToDate()
GL20ResourceShaderFragment
GL20ResourceShaderFragment
is up to date
isUpToDate
in class GL20ResourceShaderFragment
true
this GL20ResourceShaderFragment
is up to date
false
this GL20ResourceShaderFragment
is not up to date,
need an update()
callupdate()
public boolean setChannelMap(ChannelMap channelMap)
GL20ResourceShaderFragment
ChannelMap
to this GL20ResourceShaderFragment
setChannelMap
in class GL20ResourceShaderFragment
channelMap
- the ChannelMap
that should be the source of for this
GL20ResourceShaderFragment
public final void setValue(float value)
public void update()
GL20ResourceShaderFragment
GL20ResourceShaderFragment
update
in class GL20ResourceShaderFragment
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |