Package-level declarations
Types
Combines screen and fit viewports. Similarly to ScreenViewport, world size is changed on each update (resize), so update should be generally called with true
parameter (camera should be centered). Tries to keep the passed aspect ratio by applying letterboxing - horizontal or vertical black bars.
Functions
Centers this Camera in the middle of the given rectangle. width and height represent the size of the rectangle in world (camera/viewport) units. x and y are optional offsets in world units that will modify camera position.
Returns the red component of the color. Allows using destructuring declarations when working with libGDX Color class, for example:
Returns the green component of the color. Allows using destructuring declarations when working with libGDX Color class, for example:
Returns the blue component of the color. Allows using destructuring declarations when working with libGDX Color class, for example:
Returns the alpha component of the color. Allows using destructuring declarations when working with libGDX Color class, for example:
Will smoothly move the Camera at the selected target coordinated. The Camera will follow a target with a smooth linear interpolation, based on a lerp amount. lerp should be in range of 0 (slowest) to 1 (fastest). The lower that interpolation amount, the smoother - and thus slower - the following motion.
Takes a screenshot of the entire screen and saves the image using the given fileHandle.
Automatically calls GLFrameBuffer.begin and GLFrameBuffer.end.
Automatically calls ShaderProgram.bind.
Automatically calls Batch.begin and Batch.end.
Automatically calls ShapeRenderer.begin and ShapeRenderer.end.