Class Model
java.lang.Object
javaforce.gl.Model
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintaddTexture(String fn) Adds a texture filename and returns index.clone()Clones deep enough so that the cloned object will include seperate GLObjects, but share vertex, vertex point, and animation data (except for the frame position).getTexture(int idx) voidvoidprint()voidrotate(float angle, float x, float y, float z) voidscale(float x, float y, float z) voidsetFrame(int idx) voidvoidsetVisible(boolean state) voidtranslate(float x, float y, float z)
-
Field Details
-
ol
-
textures
-
m
-
visible
public boolean visible -
refcnt
public int refcnt -
debug
public static boolean debug
-
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
clone
-
setVisible
public void setVisible(boolean state) -
addObject
-
getObject
-
setIdentity
public void setIdentity() -
rotate
public void rotate(float angle, float x, float y, float z) -
translate
public void translate(float x, float y, float z) -
scale
public void scale(float x, float y, float z) -
nextFrame
public void nextFrame() -
setFrame
public void setFrame(int idx) -
addTexture
Adds a texture filename and returns index. -
getTexture
-
print
public void print()
-