|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.graphics.models.Object3DFactory
public class Object3DFactory
Factory allowing you to easily instantiate our three main types of 3D objects: StaticListObject, AnimatedObject and TextureAnimatedObject
Constructor Summary | |
---|---|
Object3DFactory()
|
Method Summary | |
---|---|
AnimatedObject |
createAnimatedObject(java.lang.String modelFile,
java.lang.String textureFile,
java.util.Hashtable<java.lang.String,Animation> animations,
ShaderProgram shader,
javax.media.opengl.GL gl)
Instantiate an AnimatedObject |
StaticListObject |
createStaticListObject(java.lang.String modelFile,
java.lang.String textureFile,
ShaderProgram shader,
javax.media.opengl.GL gl)
Instantiate a StaticListObject |
TextureAnimatedObject |
createTextureAnimatedObject(java.lang.String modelFile,
TextureAnimation animation,
ShaderProgram shader,
javax.media.opengl.GL gl)
Instantiate an TextureAnimatedObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Object3DFactory()
Method Detail |
---|
public StaticListObject createStaticListObject(java.lang.String modelFile, java.lang.String textureFile, ShaderProgram shader, javax.media.opengl.GL gl) throws java.io.IOException
modelFile
- path of the model filetextureFile
- path of the texture fileshader
- shader programgl
- OpenGL context
java.io.IOException
- one of the files is missingpublic AnimatedObject createAnimatedObject(java.lang.String modelFile, java.lang.String textureFile, java.util.Hashtable<java.lang.String,Animation> animations, ShaderProgram shader, javax.media.opengl.GL gl) throws java.io.IOException
modelFile
- path of the base model objecttextureFile
- path of the texture fileanimations
- list of the animationsshader
- shader programgl
- OpenGL context
java.io.IOException
- file not foundpublic TextureAnimatedObject createTextureAnimatedObject(java.lang.String modelFile, TextureAnimation animation, ShaderProgram shader, javax.media.opengl.GL gl) throws java.io.IOException
modelFile
- path of the base modelanimation
- texture animationshader
- shader programgl
- OpenGL context
java.io.IOException
- file not found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |