This is a class holding frame cut information
- Author
- Ramses Di Perna
◆ FrameInfo() [1/2]
com.mygdx.game.engine.entities.components.rendering.FrameInfo.FrameInfo |
( |
| ) |
|
Shows the entire picture given
- Parameters
-
◆ FrameInfo() [2/2]
com.mygdx.game.engine.entities.components.rendering.FrameInfo.FrameInfo |
( |
int |
cutPosX, |
|
|
int |
cutPosY, |
|
|
int |
frameSizeX, |
|
|
int |
frameSizeY |
|
) |
| |
Shows a part of the texture given. All other info is given in pixels.
- Parameters
-
cutPosX | is where the cutting should start in the x axis |
cutPosY | is where the cutting should start in the y axis |
frameSizeX | is how much it should cut starting from the cutPosX |
frameSizeY | is how much it should cut starting from the cutPosY |
◆ getCutHeight()
int com.mygdx.game.engine.entities.components.rendering.FrameInfo.getCutHeight |
( |
| ) |
|
Returns the height it should cut from the start position.
- Returns
- The height it should cut from the start position.
◆ getCutWidth()
int com.mygdx.game.engine.entities.components.rendering.FrameInfo.getCutWidth |
( |
| ) |
|
Returns the width it should cut from the start position.
- Returns
- The width it should cut from the start position.
◆ getStartX()
int com.mygdx.game.engine.entities.components.rendering.FrameInfo.getStartX |
( |
| ) |
|
Returns the X axis start cutting coordinates for the texture.
- Returns
- The X axis start cutting coordinates for the texture.
◆ getStartY()
int com.mygdx.game.engine.entities.components.rendering.FrameInfo.getStartY |
( |
| ) |
|
Returns the Y axis start cutting coordinates for the texture.
- Returns
- The Y axis start cutting coordinates for the texture.
The documentation for this class was generated from the following file:
- C:/Users/RamsesPC/Documents/LibGDXGames/PvB/core/src/com/mygdx/game/engine/entities/components/rendering/FrameInfo.java