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 TypeFieldDescriptionbooleanbooleanarc.graphics.gl.FrameBufferfinal BlockRendererarc.graphics.g2d.Bloomstatic floatThese are global variables, for headless access.arc.graphics.g2d.TextureRegion[]floatbooleanbooleanbooleanbooleanarc.graphics.gl.FrameBufferbooleanarc.struct.Seq<Renderer.EnvRenderer>arc.graphics.g2d.TextureRegion[][]final FogRendererfloatstatic floatThese are global variables, for headless access.final LightRendererfloatminZoom = zooming out, maxZoom = zooming in, used by cutscenesfloatminZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settingsfinal MinimapRendererfloatminZoom = zooming out, maxZoom = zooming in, used by cutscenesfloatminZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settingsfinal OverlayRendererbooleanfinal Pixelatorfloatfloatfloatarc.graphics.g2d.TextureRegion[]floatstatic floatThese are global variables, for headless access.float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomBackground(String name, Runnable render) voidaddEnvRenderer(int mask, Runnable render) voidvoiddispose()voiddraw()protected voidfloatarc.graphics.g2d.TextureRegion[][]floatfloatfloatgetScale()voidinit()booleanbooleanfloatvoidfloatmaxScale()floatminScale()voidresume()voidscaleCamera(float amount) voidsetScale(float scl) voidshake(float intensity, float duration) voidshowLanding(LaunchAnimator landCore) voidshowLaunch(LaunchAnimator landCore) voidvoidtoggleBloom(boolean enabled) voidupdate()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 -
animateWater
public boolean animateWater -
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 -
targetscale
public float targetscale -
camerascale
public float camerascale -
landTime
public float landTime -
shakeIntensity
public float shakeIntensity -
shakeReduction
public float shakeReduction -
shakeTime
public float shakeTime
-
-
Constructor Details
-
Renderer
public Renderer()
-
-
Method Details
-
shake
public void shake(float intensity, float duration) -
addEnvRenderer
-
addCustomBackground
-
init
public void init()- Specified by:
initin interfacearc.ApplicationListener
-
loadFluidFrames
public void loadFluidFrames() -
getFluidFrames
public arc.graphics.g2d.TextureRegion[][] getFluidFrames() -
update
public void update()- Specified by:
updatein 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:
disposein interfacearc.ApplicationListener
-
resume
public void resume()- Specified by:
resumein 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()
-