|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.ar3D.core.drawables.Entity3D
public class Entity3D
Represents an 3D entity that can be contained in a scene
Constructor Summary | |
---|---|
Entity3D(Mesh3D drawable)
Constructs an entity with a drawable. |
Method Summary | |
---|---|
void |
draw(GL10 gl)
Draws this entity into the given GL context |
Armature |
getArmature()
Returns an Armature in the local system coordiantes of this
entity |
Color4 |
getMaterial()
Returns entity's material |
Matrix3 |
getMatrix()
Returns the matrix with the current transformation for the entity |
float |
getRadius()
|
int |
getTextureBind()
Returns the integer associated to the open gl texture used by this entity |
void |
setDrawable(Mesh3D drawable)
Sets the drawable for this entity |
void |
setLighted(boolean lighted)
Sets whether entity is affect by light |
void |
setMaterial(Color4 m)
Sets entity's material |
void |
setTexture(Bitmap bitmap)
|
void |
setTexture(int texture)
Sets the texture for this entity |
void |
setTexture(java.lang.String uri)
Sets the texture for this entity |
void |
update(long elapsed)
Updates entity the given time |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Entity3D(Mesh3D drawable)
id
- the iddrawable
- the drawableMethod Detail |
---|
public void draw(GL10 gl)
draw
in interface Drawable3D
gl
- the GL contextpublic Armature getArmature()
Armature
in the local system coordiantes of this
entity
Armature
in the local system coordiantes of this
entitypublic Color4 getMaterial()
public Matrix3 getMatrix()
public float getRadius()
public int getTextureBind()
public void setDrawable(Mesh3D drawable)
drawable
- the drawablepublic void setLighted(boolean lighted)
public void setMaterial(Color4 m)
m
- entity's materialpublic void setTexture(Bitmap bitmap)
public void setTexture(int texture)
texture
- the resourcepublic void setTexture(java.lang.String uri)
uri
- the uri for the texturepublic void update(long elapsed)
update
in interface Drawable3D
elapsed
- elapsed time since last update (in milliseconds)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |