|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.imp3d.gl20.GL20Resource
public class GL20Resource
Field Summary | |
---|---|
static int |
GL20RESOURCE_CLASS_LIGHT
a light class GL20Resource |
static int |
GL20RESOURCE_CLASS_MASK
the class mask |
static int |
GL20RESOURCE_CLASS_MESH
a mesh class GL20Resource |
static int |
GL20RESOURCE_CLASS_SHADER
a shader class GL20Resource |
static int |
GL20RESOURCE_CLASS_SHADERFRAGMENT
a shader fragment class GL20Resource |
static int |
GL20RESOURCE_CLASS_SHAPE
a shape class GL20Resource |
static int |
GL20RESOURCE_CLASS_TEXTURE
a texture class GL20Resource |
static int |
GL20RESOURCE_LIGHT_DIRECTIONAL
a directional light |
static int |
GL20RESOURCE_LIGHT_POINT
a point light |
static int |
GL20RESOURCE_LIGHT_SPOT
a spot light |
static int |
GL20RESOURCE_MESH_MULTI_USER
a multi user mesh |
static int |
GL20RESOURCE_MESH_SINGLE_USER
a single user mesh |
static int |
GL20RESOURCE_SHADER_PHONG
a shader fragment |
static int |
GL20RESOURCE_SHADER_RGBA
a RGBA fragment |
static int |
GL20RESOURCE_SHADERFRAGMENT_BLEND
a blend fragment |
static int |
GL20RESOURCE_SHADERFRAGMENT_GRAYTONE
a graytone fragment |
static int |
GL20RESOURCE_SHADERFRAGMENT_RGB
a RGB fragment |
static int |
GL20RESOURCE_SHAPE_BOX
a box shape |
static int |
GL20RESOURCE_SHAPE_FRUSTUM
a frustum shape |
static int |
GL20RESOURCE_SHAPE_LINE
a line shape |
static int |
GL20RESOURCE_SHAPE_LINE_STRIP
a line strip shape |
static int |
GL20RESOURCE_SHAPE_PARALLELOGRAM
a parallelogram shape |
static int |
GL20RESOURCE_SHAPE_PLANE
a plane shape |
static int |
GL20RESOURCE_SHAPE_POLYGONS
a polygon shape |
static int |
GL20RESOURCE_SHAPE_SPHERE
a sphere shape |
static int |
GL20RESOURCE_TEXTURE
a texture of 1, 2 and 3 dimensions |
static int |
GL20RESOURCE_TEXTURE_CUBEMAP
TODO implement the GL20ResourceTextureCubeMap class
a cube map texture |
static int |
GL20RESOURCE_TYPE_MASK
the type mask |
Constructor Summary | |
---|---|
protected |
GL20Resource(int resourceClassType)
|
Method Summary | |
---|---|
void |
destroy()
destroy the resource. every class have to implement this method and have to call super.destroy() at the end. |
int |
getResourceClass()
return the class of the GL20Resource |
int |
getResourceClassType()
return the class and the type of the GL20Resource |
int |
getResourceType()
return the type of the GL20Resource |
boolean |
isUpToDate()
check if this GL20Resource is up to date. |
void |
update()
update the state of this GL20Resource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GL20RESOURCE_CLASS_LIGHT
GL20Resource
GL20ResourceLight
,
Constant Field Valuespublic static final int GL20RESOURCE_CLASS_MASK
public static final int GL20RESOURCE_CLASS_MESH
GL20Resource
GL20ResourceMesh
,
Constant Field Valuespublic static final int GL20RESOURCE_CLASS_SHADER
GL20Resource
GL20ResourceShader
,
Constant Field Valuespublic static final int GL20RESOURCE_CLASS_SHADERFRAGMENT
GL20Resource
GL20ResourceShaderFragment
,
Constant Field Valuespublic static final int GL20RESOURCE_CLASS_SHAPE
GL20Resource
GL20ResourceShape
,
Constant Field Valuespublic static final int GL20RESOURCE_CLASS_TEXTURE
GL20Resource
GL20ResourceTexture
,
Constant Field Valuespublic static final int GL20RESOURCE_LIGHT_DIRECTIONAL
GL20ResourceLightDirectional
,
Constant Field Valuespublic static final int GL20RESOURCE_LIGHT_POINT
GL20ResourceLightPoint
,
Constant Field Valuespublic static final int GL20RESOURCE_LIGHT_SPOT
GL20ResourceLightSpot
,
Constant Field Valuespublic static final int GL20RESOURCE_MESH_MULTI_USER
GL20ResourceMeshMultiUser
,
Constant Field Valuespublic static final int GL20RESOURCE_MESH_SINGLE_USER
GL20ResourceMeshSingleUser
,
Constant Field Valuespublic static final int GL20RESOURCE_SHADER_PHONG
GL20ResourceShaderFragment
,
Constant Field Valuespublic static final int GL20RESOURCE_SHADER_RGBA
GL20ResourceShaderFragmentRGBA,
Constant Field Values
public static final int GL20RESOURCE_SHADERFRAGMENT_BLEND
GL20ResourceShaderFragmentBlend
,
Constant Field Valuespublic static final int GL20RESOURCE_SHADERFRAGMENT_GRAYTONE
GL20ResourceShaderFragmentGraytone
,
Constant Field Valuespublic static final int GL20RESOURCE_SHADERFRAGMENT_RGB
GL20ResourceShaderFragmentRGB
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_BOX
GL20ResourceShapeBox
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_FRUSTUM
GL20ResourceShapeFrustum
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_LINE
GL20ResourceShapeLine
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_LINE_STRIP
GL20ResourceShapeLineStrip
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_PARALLELOGRAM
GL20ResourceShapeParallelogram
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_PLANE
GL20ResourceShapePlane
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_POLYGONS
GL20ResourceShapePolygons
,
Constant Field Valuespublic static final int GL20RESOURCE_SHAPE_SPHERE
GL20ResourceShapeSphere
,
Constant Field Valuespublic static final int GL20RESOURCE_TEXTURE
GL20ResourceTexture
,
Constant Field Valuespublic static final int GL20RESOURCE_TEXTURE_CUBEMAP
GL20ResourceTextureCubeMap
class
a cube map texture
GL20ResourceTextureCubeMap
,
Constant Field Valuespublic static final int GL20RESOURCE_TYPE_MASK
Constructor Detail |
---|
protected GL20Resource(int resourceClassType)
Method Detail |
---|
public void destroy()
super.destroy()
at the end.
public int getResourceClass()
GL20Resource
GL20Resource
public int getResourceClassType()
GL20Resource
GL20Resource
public int getResourceType()
GL20Resource
GL20Resource
public boolean isUpToDate()
GL20Resource
is up to date.
the resource should check if all external resources are still valid,
but don't update them in this method.
every implementation must implement this method and must call
super.isUpToDate()
.
true
- this GL20Resource
is up to dateupdate()
public void update()
GL20Resource
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |