Package javaforce.gl
Class Model
java.lang.Object
javaforce.gl.Model
- All Implemented Interfaces:
Cloneable
Model is a set of GLObject's that all share the same base orientation (rotation, translation, scale)
Each object can also have its own orientation in addition to this
Usually a 3DS file is loaded into one GLModel.
Each Object in the 3DS file will be stored into GLObject's.-
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
-
-
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()
-