public class TerrainRenderer
extends java.lang.Object
Constructor and Description |
---|
TerrainRenderer(com.badlogic.gdx.graphics.OrthographicCamera worldCamera)
Accepts the camera where the terrain lines will be drawn.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInCamera(float x1,
float y1,
float x2,
float y2)
Returns true if the given line is inside the viewable region of the camera.
|
void |
render(com.jonathan.survivor.TerrainLevel level)
Renders the given terrainLevel's geometry using OpenGL ES lines.
|
void |
resize(float screenScale)
Called whenever the screen is resized.
|
public TerrainRenderer(com.badlogic.gdx.graphics.OrthographicCamera worldCamera)
public void render(com.jonathan.survivor.TerrainLevel level)
public boolean isInCamera(float x1, float y1, float x2, float y2)
public void resize(float screenScale)