Build 1.0_r1(from source)

android.opengl
Class Object3D

java.lang.Object
  extended by android.opengl.Object3D

public abstract class Object3D
extends Object


Constructor Summary
Object3D()
           
 
Method Summary
 void draw(GL10 gl)
           
 float getBoundsMaxX()
           
 float getBoundsMaxY()
           
 float getBoundsMaxZ()
           
 float getBoundsMinX()
           
 float getBoundsMinY()
           
 float getBoundsMinZ()
           
 Material getMaterial(String name)
           
 IntBuffer getNormalBuffer()
           
 int getNumTriangles()
           
 IntBuffer getTexcoordBuffer()
           
 Texture getTexture(String name)
           
 IntBuffer getVertexBuffer()
           
 boolean hasTexcoords()
           
 void load(String filename)
           
 void loadTexture(String name)
           
abstract  InputStream readFile(String filename)
          Override this method with an implementation that contructs and InputStream from the given filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Object3D

public Object3D()
Method Detail

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)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature