android.opengl
Class Object3D
java.lang.Object
android.opengl.Object3D
public abstract class Object3D
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Object3D
public Object3D()
readFile
public abstract InputStream readFile(String filename)
throws IOException
- Override this method with an implementation that contructs
and InputStream from the given filename. For example, if the
source files are to be retrieved using an AssetManager,
the implementation would use AssetManager.load() to
get the input stream.
- Throws:
IOException
getMaterial
public Material getMaterial(String name)
getTexture
public Texture getTexture(String name)
getVertexBuffer
public IntBuffer getVertexBuffer()
getNormalBuffer
public IntBuffer getNormalBuffer()
getTexcoordBuffer
public IntBuffer getTexcoordBuffer()
getNumTriangles
public int getNumTriangles()
hasTexcoords
public boolean hasTexcoords()
getBoundsMinX
public float getBoundsMinX()
getBoundsMaxX
public float getBoundsMaxX()
getBoundsMinY
public float getBoundsMinY()
getBoundsMaxY
public float getBoundsMaxY()
getBoundsMinZ
public float getBoundsMinZ()
getBoundsMaxZ
public float getBoundsMaxZ()
loadTexture
public void loadTexture(String name)
throws IOException
- Throws:
IOException
load
public void load(String filename)
throws IOException
- Throws:
IOException
draw
public void draw(GL10 gl)
Please submit a feedback, bug or feature