- small javadoc fixes for TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9058 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
64c5e75684
commit
d18460ae33
@ -169,7 +169,6 @@ public class TextureAtlas {
|
|||||||
* @param texture A texture to add to the atlas.
|
* @param texture A texture to add to the atlas.
|
||||||
* @param mapName A freely chosen map name that can be later retrieved as a Texture.
|
* @param mapName A freely chosen map name that can be later retrieved as a Texture.
|
||||||
* @param masterTexture The master texture for determining the location, it has to exist in tha master map.
|
* @param masterTexture The master texture for determining the location, it has to exist in tha master map.
|
||||||
* @return false if the atlas is full
|
|
||||||
*/
|
*/
|
||||||
public void addTexture(Texture texture, String mapName, Texture masterTexture) {
|
public void addTexture(Texture texture, String mapName, Texture masterTexture) {
|
||||||
String sourceTextureName = textureName(masterTexture);
|
String sourceTextureName = textureName(masterTexture);
|
||||||
@ -551,9 +550,9 @@ public class TextureAtlas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the transformed texture location for a given input location.
|
* Get the transformed texture coordinate for a given input location.
|
||||||
* @param previousLocation.
|
* @param previousLocation The old texture coordinate.
|
||||||
* @return
|
* @return The new texture coordinate inside the atlas.
|
||||||
*/
|
*/
|
||||||
public Vector2f getLocation(Vector2f previousLocation) {
|
public Vector2f getLocation(Vector2f previousLocation) {
|
||||||
float x = (float) getX() / (float) atlasWidth;
|
float x = (float) getX() / (float) atlasWidth;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user