de.grogra.imp3d.gl20
public class GL20ResourceLight extends GL20Resource
GL20RESOURCE_CLASS_LIGHT, GL20RESOURCE_CLASS_MASK, GL20RESOURCE_CLASS_MESH, GL20RESOURCE_CLASS_SHADER, GL20RESOURCE_CLASS_SHADERFRAGMENT, GL20RESOURCE_CLASS_SHAPE, GL20RESOURCE_CLASS_TEXTURE, GL20RESOURCE_LIGHT_DIRECTIONAL, GL20RESOURCE_LIGHT_POINT, GL20RESOURCE_LIGHT_SPOT, GL20RESOURCE_MESH_MULTI_USER, GL20RESOURCE_MESH_SINGLE_USER, GL20RESOURCE_SHADER_PHONG, GL20RESOURCE_SHADER_RGBA, GL20RESOURCE_SHADERFRAGMENT_BLEND, GL20RESOURCE_SHADERFRAGMENT_GRAYTONE, GL20RESOURCE_SHADERFRAGMENT_RGB, GL20RESOURCE_SHAPE_BOX, GL20RESOURCE_SHAPE_FRUSTUM, GL20RESOURCE_SHAPE_LINE, GL20RESOURCE_SHAPE_LINE_STRIP, GL20RESOURCE_SHAPE_PARALLELOGRAM, GL20RESOURCE_SHAPE_PLANE, GL20RESOURCE_SHAPE_POLYGONS, GL20RESOURCE_SHAPE_SPHERE, GL20RESOURCE_TEXTURE, GL20RESOURCE_TEXTURE_CUBEMAP, GL20RESOURCE_TYPE_MASK| Modifier | Constructor and Description |
|---|---|
protected |
GL20ResourceLight(int resourceClassType) |
| Modifier and Type | Method and Description |
|---|---|
void |
destory()
destroy the resource
|
Vector3f |
getColor()
get the color of this
GL20ResourceLight |
Matrix4d |
getWorldTransformationMatrix()
get the world transformation matrix of this
GL20ResourceLight |
boolean |
isUpToDate()
check if this
GL20ResourceLight is up to date. |
static void |
registerLight(GL20ResourceLight light) |
void |
setColor(Vector3f color)
set the color of this
GL20ResourceLight |
static void |
setupLights() |
void |
setWorldTransformationMatrix(Matrix4d worldMatrix)
set world transformation matrix of this
GL20ResourceLight |
static void |
unregisterLight(GL20ResourceLight light) |
void |
update()
update the state of this
GL20ResourceLight |
destroy, getResourceClass, getResourceClassType, getResourceTypepublic void destory()
GL20Resourcepublic final Vector3f getColor()
GL20ResourceLightpublic final Matrix4d getWorldTransformationMatrix()
GL20ResourceLightpublic boolean isUpToDate()
GL20ResourceLight is up to date.isUpToDate in class GL20Resourcetrue - this GL20ResourceLight is up to dateGL20Resourcepublic static final void registerLight(GL20ResourceLight light)
public final void setColor(Vector3f color)
GL20ResourceLightcolor - the colorpublic static void setupLights()
public final void setWorldTransformationMatrix(Matrix4d worldMatrix)
GL20ResourceLightworldMatrix - the world transformation matrixpublic static final void unregisterLight(GL20ResourceLight light)
public void update()
GL20ResourceLightupdate in class GL20ResourceGL20Resource