Bandidos
Public Member Functions | List of all members
com.mygdx.game.engine.entities.components.rendering.FrameInfo Class Reference

Public Member Functions

 FrameInfo ()
 
 FrameInfo (int cutPosX, int cutPosY, int frameSizeX, int frameSizeY)
 
int getStartX ()
 
int getStartY ()
 
int getCutWidth ()
 
int getCutHeight ()
 

Detailed Description

This is a class holding frame cut information

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ FrameInfo() [1/2]

com.mygdx.game.engine.entities.components.rendering.FrameInfo.FrameInfo ( )

Shows the entire picture given

Parameters
textureto display

◆ 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
cutPosXis where the cutting should start in the x axis
cutPosYis where the cutting should start in the y axis
frameSizeXis how much it should cut starting from the cutPosX
frameSizeYis how much it should cut starting from the cutPosY

Member Function Documentation

◆ 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: