Package javaforce.gl
Class Model
java.lang.Object
javaforce.gl.Model
- All Implemented Interfaces:
Cloneable
Model is a set of Object3's that all share the same base orientation (rotation, translation, scale)
Each object can also have its own orientation.
See javaforce.gl.model for import/export classes.-
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
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). -
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()
-