|
||||||||
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
public abstract class GL20ResourceShaderFragment
Field Summary | |
---|---|
static int |
GL20CHANNEL_A
color.a channel |
static int |
GL20CHANNEL_A_BIT
color.a channel bit |
static int |
GL20CHANNEL_B
color.b channel |
static int |
GL20CHANNEL_B_BIT
color.b channel bit |
static int |
GL20CHANNEL_DERIVATE_BITS
all derivate channels bitmask |
static int |
GL20CHANNEL_DERIVATE_DU_BITS
derivate du channels bitmask |
static int |
GL20CHANNEL_DERIVATE_DV_BITS
derivate dv channels bitmask |
static int |
GL20CHANNEL_DERIVATE_MAX
last derivate channel |
static int |
GL20CHANNEL_DERIVATE_MIN
first derivate channel |
static int |
GL20CHANNEL_DERIVATE_X_DU
derivate x du channel |
static int |
GL20CHANNEL_DERIVATE_X_DU_BIT
derivate x du channel bit |
static int |
GL20CHANNEL_DERIVATE_X_DV
derivate x dv channel |
static int |
GL20CHANNEL_DERIVATE_X_DV_BIT
derivate x dv channel bit |
static int |
GL20CHANNEL_DERIVATE_Y_DU
derivate y du channel |
static int |
GL20CHANNEL_DERIVATE_Y_DU_BIT
derivate y du channel bit |
static int |
GL20CHANNEL_DERIVATE_Y_DV
derivate y dv channel |
static int |
GL20CHANNEL_DERIVATE_Y_DV_BIT
derivate y dv channel bit |
static int |
GL20CHANNEL_DERIVATE_Z_DU
derivate z du channel |
static int |
GL20CHANNEL_DERIVATE_Z_DU_BIT
derivate z du channel bit |
static int |
GL20CHANNEL_DERIVATE_Z_DV
derivate z dv channel |
static int |
GL20CHANNEL_DERIVATE_Z_DV_BIT
derivate z dv channel bit |
static int |
GL20CHANNEL_G
color.g channel |
static int |
GL20CHANNEL_G_BIT
color.g channel bit |
static int |
GL20CHANNEL_NORMAL_BITS
normal channels bitmask |
static int |
GL20CHANNEL_NORMAL_X
normal.x channel |
static int |
GL20CHANNEL_NORMAL_X_BIT
normal.x channel bit |
static int |
GL20CHANNEL_NORMAL_Y
normal.y channel |
static int |
GL20CHANNEL_NORMAL_Y_BIT
normal.y channel bit |
static int |
GL20CHANNEL_NORMAL_Z
normal.z channel |
static int |
GL20CHANNEL_NORMAL_Z_BIT
normal.z channel bit |
static int |
GL20CHANNEL_POSITION_BITS
position channels bitmask |
static int |
GL20CHANNEL_POSITION_X
position.x channel |
static int |
GL20CHANNEL_POSITION_X_BIT
position.x channel bit |
static int |
GL20CHANNEL_POSITION_Y
position.y channel |
static int |
GL20CHANNEL_POSITION_Y_BIT
position.y channel bit |
static int |
GL20CHANNEL_POSITION_Z
position.z channel |
static int |
GL20CHANNEL_POSITION_Z_BIT
position.z channel bit |
static int |
GL20CHANNEL_R
color.r channel |
static int |
GL20CHANNEL_R_BIT
color.r channel bit |
static int |
GL20CHANNEL_RGB_BITS
rgb channels bitmask |
static int |
GL20CHANNEL_RGBA_BITS
rgba channels bitmask |
static int |
GL20CHANNEL_TEXCOORD_BITS
texcoord channels bitmask |
static int |
GL20CHANNEL_TEXCOORD_U
texcoord.u channel |
static int |
GL20CHANNEL_TEXCOORD_U_BIT
texcoord.u channel bit |
static int |
GL20CHANNEL_TEXCOORD_V
texcoord.v channel |
static int |
GL20CHANNEL_TEXCOORD_V_BIT
texcoord.v channel bit |
static int |
GL20CHANNEL_TEXCOORD_W
texcoord.w channel |
static int |
GL20CHANNEL_TEXCOORD_W_BIT
texcoord.w channel bit |
static int |
GL20CHANNEL_X
x channel |
static int |
GL20CHANNEL_X_BIT
x channel bit |
static int |
GL20CHANNEL_XYZ_BITS
xyz channels bitmask |
static int |
GL20CHANNEL_Y
y channel |
static int |
GL20CHANNEL_Y_BIT
y channel bit |
static int |
GL20CHANNEL_Z
z channel |
static int |
GL20CHANNEL_Z_BIT
z channel bit |
Constructor Summary | |
---|---|
protected |
GL20ResourceShaderFragment(int resourceClassType)
|
Method Summary | |
---|---|
void |
destroy()
every GL20ResourceShaderFragment have to override this
method when it contains objects that should be released |
abstract boolean |
fragmentAffectOnAlpha()
check if this GL20ResourceShaderFragment affect the alpha
channel |
ChannelMap |
getChannelMap()
return the equivalent ChannelMap to this GL20ResourceShaderFragment |
int |
getScalarIndex(de.grogra.imp3d.gl20.GL20GLSLCode code,
int channel)
get the index of the scalar value for the code that was created |
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 |
void |
registerUser()
register one user of this GL20ResourceShaderFragment |
boolean |
setChannelMap(ChannelMap channelMap)
set the equivalent ChannelMap to this GL20ResourceShaderFragment |
void |
unregisterUser()
unregister one user of this GL20ResourceShaderFragment . |
void |
update()
update this GL20ResourceShaderFragment |
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 |
Field Detail |
---|
public static final int GL20CHANNEL_A
public static final int GL20CHANNEL_A_BIT
public static final int GL20CHANNEL_B
public static final int GL20CHANNEL_B_BIT
public static final int GL20CHANNEL_DERIVATE_BITS
public static final int GL20CHANNEL_DERIVATE_DU_BITS
public static final int GL20CHANNEL_DERIVATE_DV_BITS
public static final int GL20CHANNEL_DERIVATE_MAX
public static final int GL20CHANNEL_DERIVATE_MIN
public static final int GL20CHANNEL_DERIVATE_X_DU
public static final int GL20CHANNEL_DERIVATE_X_DU_BIT
public static final int GL20CHANNEL_DERIVATE_X_DV
public static final int GL20CHANNEL_DERIVATE_X_DV_BIT
public static final int GL20CHANNEL_DERIVATE_Y_DU
public static final int GL20CHANNEL_DERIVATE_Y_DU_BIT
public static final int GL20CHANNEL_DERIVATE_Y_DV
public static final int GL20CHANNEL_DERIVATE_Y_DV_BIT
public static final int GL20CHANNEL_DERIVATE_Z_DU
public static final int GL20CHANNEL_DERIVATE_Z_DU_BIT
public static final int GL20CHANNEL_DERIVATE_Z_DV
public static final int GL20CHANNEL_DERIVATE_Z_DV_BIT
public static final int GL20CHANNEL_G
public static final int GL20CHANNEL_G_BIT
public static final int GL20CHANNEL_NORMAL_BITS
public static final int GL20CHANNEL_NORMAL_X
public static final int GL20CHANNEL_NORMAL_X_BIT
public static final int GL20CHANNEL_NORMAL_Y
public static final int GL20CHANNEL_NORMAL_Y_BIT
public static final int GL20CHANNEL_NORMAL_Z
public static final int GL20CHANNEL_NORMAL_Z_BIT
public static final int GL20CHANNEL_POSITION_BITS
public static final int GL20CHANNEL_POSITION_X
public static final int GL20CHANNEL_POSITION_X_BIT
public static final int GL20CHANNEL_POSITION_Y
public static final int GL20CHANNEL_POSITION_Y_BIT
public static final int GL20CHANNEL_POSITION_Z
public static final int GL20CHANNEL_POSITION_Z_BIT
public static final int GL20CHANNEL_R
public static final int GL20CHANNEL_R_BIT
public static final int GL20CHANNEL_RGB_BITS
public static final int GL20CHANNEL_RGBA_BITS
public static final int GL20CHANNEL_TEXCOORD_BITS
public static final int GL20CHANNEL_TEXCOORD_U
public static final int GL20CHANNEL_TEXCOORD_U_BIT
public static final int GL20CHANNEL_TEXCOORD_V
public static final int GL20CHANNEL_TEXCOORD_V_BIT
public static final int GL20CHANNEL_TEXCOORD_W
public static final int GL20CHANNEL_TEXCOORD_W_BIT
public static final int GL20CHANNEL_X
public static final int GL20CHANNEL_X_BIT
public static final int GL20CHANNEL_XYZ_BITS
public static final int GL20CHANNEL_Y
public static final int GL20CHANNEL_Y_BIT
public static final int GL20CHANNEL_Z
public static final int GL20CHANNEL_Z_BIT
Constructor Detail |
---|
protected GL20ResourceShaderFragment(int resourceClassType)
Method Detail |
---|
public void destroy()
GL20ResourceShaderFragment
have to override this
method when it contains objects that should be released
destroy
in class GL20Resource
public abstract boolean fragmentAffectOnAlpha()
GL20ResourceShaderFragment
affect the alpha
channel
true
this GL20ResourceShader
will
affect the alpha channel
false
this GL20ResourceShader
will not
affect the alpha channelpublic ChannelMap getChannelMap()
ChannelMap
to this GL20ResourceShaderFragment
ChannelMap
for this GL20ResourceShaderFragment
public int getScalarIndex(de.grogra.imp3d.gl20.GL20GLSLCode code, int channel)
code
that was created
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 int getVector3Index(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
code
that was created
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)
code
that was created
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
is up to date
isUpToDate
in class GL20Resource
true
this GL20ResourceShaderFragment
is up to date
false
this GL20ResourceShaderFragment
is not up to date,
need an update()
callupdate()
public final void registerUser()
GL20ResourceShaderFragment
public boolean setChannelMap(ChannelMap channelMap)
ChannelMap
to this GL20ResourceShaderFragment
channelMap
- the ChannelMap
that should be the source of for this
GL20ResourceShaderFragment
public final void unregisterUser()
GL20ResourceShaderFragment
.
When no more user exists, this GL20ResourceShaderFragment
will destroy itself.
public void update()
GL20ResourceShaderFragment
update
in class GL20Resource
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |