Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.material.mapping.SpriteInfo
Extends/Implements : -
Subclasses : -

author  Johann Sorel


Variables : -
Functions : SpriteInfo, SpriteInfo, getWidth, getHeight, getNbCols, getNbRows, setCurrent, getCurrentCol, getCurrentRow, toParameters



public void SpriteInfo ()


param  width
param  height
param  nbCols
param  nbRows
param  spacing spacing in pixel between each sprite
public void SpriteInfo (int width, int height, int nbCols, int nbRows, int spacing)

public int getWidth ()

public int getHeight ()

public int getNbCols ()

public int getNbRows ()

public void setCurrent (int col, int row)

public int getCurrentCol ()

public int getCurrentRow ()


Parameters for shader.
[ImageIndex, spacing, width, height]
@return
public float[] toParameters ()