If you think the Android project SevenWonders listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package skylight1.sevenwonders.levels;
//fromwww.java2s.compublicclass GameObjectDescriptor {
/**
* Transformation matrix to apply to the object before adding to it to the OpenGLGeometry. To add it without any
* transformation, return null. To add it translated by x, y, z:
*
* <code>
* final float[] m = new float[16];
* android.opengl.Matrix.setIdentity(m, 0);
* android.opengl.Matrix.translateM(m, 0, x, y, z);
* </code>
*/publicfinalfloat[] coordinateTransformationMatrix;
publicfinalfloat[] textureTransformationMatrix;
/**
* The resource for the OBJ file, e.g., R.raw.spell for "spell.obj".
*/publicfinalint objectFileResourceId;
/**
* The resource for the texture file, e.g., R.raw.dunes for "dunes.png".
*/publicfinalint textureResource;
public GameObjectDescriptor(finalfloat[] aCoordinateTransformationMatrix, float[] aTextureTransformationMatrix,
finalint anObjectFileResourceId, finalint aTextureFileResourceId) {
coordinateTransformationMatrix = aCoordinateTransformationMatrix;
textureTransformationMatrix = aTextureTransformationMatrix;
objectFileResourceId = anObjectFileResourceId;
textureResource = aTextureFileResourceId;
}
}