Bandidos
Public Member Functions | List of all members
com.mygdx.game.engine.scenes.RenderComponents Class Reference

Public Member Functions

 RenderComponents (SpriteBatch sp, GameCamera mainCam, GameCamera hudCam)
 
void resetCams ()
 
GameCamera getMainCamera ()
 
GameCamera getHudCamera ()
 
SpriteBatch getSpriteBatch ()
 
void update (float deltaTime)
 

Detailed Description

Contains the Render Components for the game. Including SpriteBatch and Cameras.

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ RenderComponents()

com.mygdx.game.engine.scenes.RenderComponents.RenderComponents ( SpriteBatch  sp,
GameCamera  mainCam,
GameCamera  hudCam 
)

Member Function Documentation

◆ getHudCamera()

GameCamera com.mygdx.game.engine.scenes.RenderComponents.getHudCamera ( )

The camera which is responsible of drawing UI on the screen.

Returns
Returns the main camera of the game

◆ getMainCamera()

GameCamera com.mygdx.game.engine.scenes.RenderComponents.getMainCamera ( )

The camera which is responsible of drawing main assets of the game on the screen.

Returns
Returns the main camera of the game

◆ getSpriteBatch()

SpriteBatch com.mygdx.game.engine.scenes.RenderComponents.getSpriteBatch ( )

The drawing field for the game.

Returns
Returns the SpriteBatch of the game.

◆ resetCams()

void com.mygdx.game.engine.scenes.RenderComponents.resetCams ( )

Resets all the cams back to their original state and position.

◆ update()

void com.mygdx.game.engine.scenes.RenderComponents.update ( float  deltaTime)

The documentation for this class was generated from the following file: