Package mindustry.core
Class Renderer
java.lang.Object
mindustry.core.Renderer
- All Implemented Interfaces:
arc.ApplicationListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
arc.graphics.gl.FrameBuffer
final BlockRenderer
arc.graphics.g2d.Bloom
static float
These are global variables, for headless access.arc.graphics.g2d.TextureRegion[]
boolean
boolean
boolean
boolean
arc.graphics.gl.FrameBuffer
boolean
arc.struct.Seq<Renderer.EnvRenderer>
arc.graphics.g2d.TextureRegion[][]
final FogRenderer
static float
These are global variables, for headless access.final LightRenderer
float
minZoom = zooming out, maxZoom = zooming in, used by cutscenesfloat
minZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settingsfinal MinimapRenderer
float
minZoom = zooming out, maxZoom = zooming in, used by cutscenesfloat
minZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settingsfinal OverlayRenderer
boolean
final Pixelator
arc.graphics.g2d.TextureRegion[]
static float
These are global variables, for headless access.float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomBackground
(String name, Runnable render) void
addEnvRenderer
(int mask, Runnable render) void
void
dispose()
void
draw()
protected void
float
arc.graphics.g2d.TextureRegion[][]
float
float
float
getScale()
void
init()
boolean
boolean
float
void
float
maxScale()
float
minScale()
void
resume()
void
scaleCamera
(float amount) void
setScale
(float scl) void
shake
(float intensity, float duration) void
showLanding
(LaunchAnimator landCore) void
showLaunch
(LaunchAnimator landCore) void
void
toggleBloom
(boolean enabled) void
update()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.ApplicationListener
exit, fileDropped, pause, resize
-
Field Details
-
laserOpacity
public static float laserOpacityThese are global variables, for headless access. Cached. -
unitLaserOpacity
public static float unitLaserOpacityThese are global variables, for headless access. Cached. -
bridgeOpacity
public static float bridgeOpacityThese are global variables, for headless access. Cached. -
blocks
-
fog
-
minimap
-
overlays
-
lights
-
pixelator
-
planets
-
bloom
@Nullable public arc.graphics.g2d.Bloom bloom -
backgroundBuffer
@Nullable public arc.graphics.gl.FrameBuffer backgroundBuffer -
effectBuffer
public arc.graphics.gl.FrameBuffer effectBuffer -
animateShields
public boolean animateShields -
drawWeather
public boolean drawWeather -
drawStatus
public boolean drawStatus -
enableEffects
public boolean enableEffects -
drawDisplays
public boolean drawDisplays -
drawLight
public boolean drawLight -
pixelate
public boolean pixelate -
weatherAlpha
public float weatherAlpha -
minZoom
public float minZoomminZoom = zooming out, maxZoom = zooming in, used by cutscenes -
maxZoom
public float maxZoomminZoom = zooming out, maxZoom = zooming in, used by cutscenes -
minZoomInGame
public float minZoomInGameminZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settings -
maxZoomInGame
public float maxZoomInGameminZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settings -
envRenderers
-
customBackgrounds
-
bubbles
public arc.graphics.g2d.TextureRegion[] bubbles -
splashes
public arc.graphics.g2d.TextureRegion[] splashes -
fluidFrames
public arc.graphics.g2d.TextureRegion[][] fluidFrames
-
-
Constructor Details
-
Renderer
public Renderer()
-
-
Method Details
-
shake
public void shake(float intensity, float duration) -
addEnvRenderer
-
addCustomBackground
-
init
public void init()- Specified by:
init
in interfacearc.ApplicationListener
-
loadFluidFrames
public void loadFluidFrames() -
getFluidFrames
public arc.graphics.g2d.TextureRegion[][] getFluidFrames() -
update
public void update()- Specified by:
update
in interfacearc.ApplicationListener
-
updateAllDarkness
public void updateAllDarkness() -
isCutscene
public boolean isCutscene()- Returns:
- whether a launch/land cutscene is playing.
-
landScale
public float landScale() -
dispose
public void dispose()- Specified by:
dispose
in interfacearc.ApplicationListener
-
resume
public void resume()- Specified by:
resume
in interfacearc.ApplicationListener
-
toggleBloom
public void toggleBloom(boolean enabled) -
draw
public void draw() -
drawBackground
protected void drawBackground() -
scaleCamera
public void scaleCamera(float amount) -
clampScale
public void clampScale() -
getDisplayScale
public float getDisplayScale() -
minScale
public float minScale() -
maxScale
public float maxScale() -
getScale
public float getScale() -
setScale
public void setScale(float scl) -
isLaunching
public boolean isLaunching() -
getLandTime
public float getLandTime() -
getLandTimeIn
public float getLandTimeIn() -
showLanding
-
showLaunch
-
takeMapScreenshot
public void takeMapScreenshot()
-