|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.gl20.GL20Resource de.grogra.imp3d.gl20.GL20ResourceShaderRGBA
public class GL20ResourceShaderRGBA
Field Summary | |
---|---|
static int |
NEEDS_LIGHTS
shader need information about lights |
static int |
NEEDS_NORMAL
shader need normals for calculation |
static int |
NEEDS_TEXCOORD
shader need texture coordinats for calculation |
static int |
NEEDS_WORLD_TO_VIEW_MATRIX
shader need the world-to-view matrix |
static int |
NON_OPAQUE
shader can produce transparent fragments |
Constructor Summary | |
---|---|
GL20ResourceShaderRGBA()
|
|
GL20ResourceShaderRGBA(float red,
float green,
float blue)
|
Method Summary | |
---|---|
void |
applyShader(boolean shadeless)
|
void |
destroy()
destroy this GL20Shader |
Vector4f |
getColor()
|
int |
getEnvironmentDependencies()
get the environment dependencies for this GL20ResourceShader |
int |
getScalarFromShader(de.grogra.imp3d.gl20.GL20GLSLCode code,
int channel)
|
Shader |
getShader()
return the equivalent Shader |
int |
getVector3FromShader(de.grogra.imp3d.gl20.GL20GLSLCode code,
int startChannel)
|
int |
getVector4FromShader(de.grogra.imp3d.gl20.GL20GLSLCode code,
int startChannel)
|
boolean |
isUpToDate()
check if this GL20ResourceShader is up to date |
void |
registerUser()
|
void |
setColor(Vector4f color)
|
boolean |
setShader(Shader shader)
|
void |
unregisterUser()
|
void |
update()
update this GL20ResourceShader |
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 NEEDS_LIGHTS
public static final int NEEDS_NORMAL
public static final int NEEDS_TEXCOORD
public static final int NEEDS_WORLD_TO_VIEW_MATRIX
public static final int NON_OPAQUE
Constructor Detail |
---|
public GL20ResourceShaderRGBA()
public GL20ResourceShaderRGBA(float red, float green, float blue)
Method Detail |
---|
public void destroy()
GL20Shader
public Vector4f getColor()
public int getEnvironmentDependencies()
GL20ResourceShader
public int getScalarFromShader(de.grogra.imp3d.gl20.GL20GLSLCode code, int channel)
public int getVector3FromShader(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
public int getVector4FromShader(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
public boolean isUpToDate()
GL20ResourceShader
is up to date
true
this GL20ResourceShader
is up to date
false
this GL20ResourceShader
is not up to date,
need an update()
callupdate()
public void setColor(Vector4f color)
public boolean setShader(Shader shader)
public void update()
GL20ResourceShader
public void applyShader(boolean shadeless)
public final Shader getShader()
Shader
Shader
public void registerUser()
public void unregisterUser()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |