Class GpuPlugin

  • All Implemented Interfaces:
    com.google.inject.Module, net.runelite.api.hooks.DrawCallbacks

    @PluginDescriptor(name="GPU",
                      description="Offloads rendering to GPU",
                      tags={"fog","draw distance"},
                      loadInSafeMode=false)
    public class GpuPlugin
    extends Plugin
    implements net.runelite.api.hooks.DrawCallbacks
    • Field Summary

      • Fields inherited from interface net.runelite.api.hooks.DrawCallbacks

        GPU, HILLSKEW, NO_VERTEX_SNAPPING, NORMALS, PASS_ALPHA, PASS_OPAQUE, UNLIT_FACE_COLORS, ZBUF, ZBUF_ZONE_FRUSTUM_CHECK
    • Constructor Summary

      Constructors 
      Constructor Description
      GpuPlugin()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void despawnWorldView​(net.runelite.api.WorldView worldView)  
      void draw​(int overlayColor)  
      void drawDynamic​(net.runelite.api.Projection worldProjection, net.runelite.api.Scene scene, net.runelite.api.TileObject tileObject, net.runelite.api.Renderable r, net.runelite.api.Model m, int orient, int x, int y, int z)  
      void drawPass​(net.runelite.api.Projection projection, net.runelite.api.Scene scene, int pass)  
      void drawTemp​(net.runelite.api.Projection worldProjection, net.runelite.api.Scene scene, net.runelite.api.GameObject gameObject, net.runelite.api.Model m, int orient, int x, int y, int z)  
      void drawZoneAlpha​(net.runelite.api.Projection entityProjection, net.runelite.api.Scene scene, int level, int zx, int zz)  
      void drawZoneOpaque​(net.runelite.api.Projection entityProjection, net.runelite.api.Scene scene, int zx, int zz)  
      void invalidateZone​(net.runelite.api.Scene scene, int zx, int zz)  
      void loadScene​(net.runelite.api.WorldView worldView, net.runelite.api.Scene scene)  
      void onConfigChanged​(ConfigChanged configChanged)  
      void onGameStateChanged​(net.runelite.api.events.GameStateChanged gameStateChanged)  
      void onPostClientTick​(net.runelite.api.events.PostClientTick event)  
      void postSceneDraw​(net.runelite.api.Scene scene)  
      void preSceneDraw​(net.runelite.api.Scene scene, float cameraX, float cameraY, float cameraZ, float cameraPitch, float cameraYaw, int minLevel, int level, int maxLevel, Set<Integer> hideRoofIds)  
      protected void shutDown()  
      protected void startUp()  
      void swapScene​(net.runelite.api.Scene scene)  
      • Methods inherited from interface net.runelite.api.hooks.DrawCallbacks

        animate, draw, drawScene, drawScenePaint, drawSceneTileModel, loadScene, postDrawScene, tileInFrustum, zoneInFrustum
    • Constructor Detail

      • GpuPlugin

        public GpuPlugin()
    • Method Detail

      • startUp

        protected void startUp()
        Overrides:
        startUp in class Plugin
      • shutDown

        protected void shutDown()
        Overrides:
        shutDown in class Plugin
      • preSceneDraw

        public void preSceneDraw​(net.runelite.api.Scene scene,
                                 float cameraX,
                                 float cameraY,
                                 float cameraZ,
                                 float cameraPitch,
                                 float cameraYaw,
                                 int minLevel,
                                 int level,
                                 int maxLevel,
                                 Set<Integer> hideRoofIds)
        Specified by:
        preSceneDraw in interface net.runelite.api.hooks.DrawCallbacks
      • postSceneDraw

        public void postSceneDraw​(net.runelite.api.Scene scene)
        Specified by:
        postSceneDraw in interface net.runelite.api.hooks.DrawCallbacks
      • drawZoneOpaque

        public void drawZoneOpaque​(net.runelite.api.Projection entityProjection,
                                   net.runelite.api.Scene scene,
                                   int zx,
                                   int zz)
        Specified by:
        drawZoneOpaque in interface net.runelite.api.hooks.DrawCallbacks
      • drawZoneAlpha

        public void drawZoneAlpha​(net.runelite.api.Projection entityProjection,
                                  net.runelite.api.Scene scene,
                                  int level,
                                  int zx,
                                  int zz)
        Specified by:
        drawZoneAlpha in interface net.runelite.api.hooks.DrawCallbacks
      • drawPass

        public void drawPass​(net.runelite.api.Projection projection,
                             net.runelite.api.Scene scene,
                             int pass)
        Specified by:
        drawPass in interface net.runelite.api.hooks.DrawCallbacks
      • drawDynamic

        public void drawDynamic​(net.runelite.api.Projection worldProjection,
                                net.runelite.api.Scene scene,
                                net.runelite.api.TileObject tileObject,
                                net.runelite.api.Renderable r,
                                net.runelite.api.Model m,
                                int orient,
                                int x,
                                int y,
                                int z)
        Specified by:
        drawDynamic in interface net.runelite.api.hooks.DrawCallbacks
      • drawTemp

        public void drawTemp​(net.runelite.api.Projection worldProjection,
                             net.runelite.api.Scene scene,
                             net.runelite.api.GameObject gameObject,
                             net.runelite.api.Model m,
                             int orient,
                             int x,
                             int y,
                             int z)
        Specified by:
        drawTemp in interface net.runelite.api.hooks.DrawCallbacks
      • invalidateZone

        public void invalidateZone​(net.runelite.api.Scene scene,
                                   int zx,
                                   int zz)
        Specified by:
        invalidateZone in interface net.runelite.api.hooks.DrawCallbacks
      • onPostClientTick

        @Subscribe
        public void onPostClientTick​(net.runelite.api.events.PostClientTick event)
      • draw

        public void draw​(int overlayColor)
        Specified by:
        draw in interface net.runelite.api.hooks.DrawCallbacks
      • onGameStateChanged

        @Subscribe
        public void onGameStateChanged​(net.runelite.api.events.GameStateChanged gameStateChanged)
      • loadScene

        public void loadScene​(net.runelite.api.WorldView worldView,
                              net.runelite.api.Scene scene)
        Specified by:
        loadScene in interface net.runelite.api.hooks.DrawCallbacks
      • despawnWorldView

        public void despawnWorldView​(net.runelite.api.WorldView worldView)
        Specified by:
        despawnWorldView in interface net.runelite.api.hooks.DrawCallbacks
      • swapScene

        public void swapScene​(net.runelite.api.Scene scene)
        Specified by:
        swapScene in interface net.runelite.api.hooks.DrawCallbacks