Class Renderer

java.lang.Object
mindustry.core.Renderer
All Implemented Interfaces:
arc.ApplicationListener

public class Renderer extends Object implements arc.ApplicationListener
  • Field Details

    • laserOpacity

      public static float laserOpacity
      These are global variables, for headless access. Cached.
    • unitLaserOpacity

      public static float unitLaserOpacity
      These are global variables, for headless access. Cached.
    • bridgeOpacity

      public static float bridgeOpacity
      These are global variables, for headless access. Cached.
    • blocks

      public final BlockRenderer blocks
    • fog

      public final FogRenderer fog
    • minimap

      public final MinimapRenderer minimap
    • overlays

      public final OverlayRenderer overlays
    • lights

      public final LightRenderer lights
    • pixelator

      public final Pixelator pixelator
    • planets

      public PlanetRenderer 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 minZoom
      minZoom = zooming out, maxZoom = zooming in, used by cutscenes
    • maxZoom

      public float maxZoom
      minZoom = zooming out, maxZoom = zooming in, used by cutscenes
    • minZoomInGame

      public float minZoomInGame
      minZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settings
    • maxZoomInGame

      public float maxZoomInGame
      minZoom = zooming out, maxZoom = zooming in, used by actual gameplay zoom and regulated by settings
    • envRenderers

      public arc.struct.Seq<Renderer.EnvRenderer> envRenderers
    • customBackgrounds

      public arc.struct.ObjectMap<String,Runnable> 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

      public void addEnvRenderer(int mask, Runnable render)
    • addCustomBackground

      public void addCustomBackground(String name, Runnable render)
    • init

      public void init()
      Specified by:
      init in interface arc.ApplicationListener
    • loadFluidFrames

      public void loadFluidFrames()
    • getFluidFrames

      public arc.graphics.g2d.TextureRegion[][] getFluidFrames()
    • update

      public void update()
      Specified by:
      update in interface arc.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 interface arc.ApplicationListener
    • resume

      public void resume()
      Specified by:
      resume in interface arc.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

      public void showLanding(LaunchAnimator landCore)
    • showLaunch

      public void showLaunch(LaunchAnimator landCore)
    • takeMapScreenshot

      public void takeMapScreenshot()