Class GpuPlugin

    • Field Summary

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

        GPU, HILLSKEW, NO_VERTEX_SNAPPING, NORMALS, PASS_ALPHA, PASS_OPAQUE, 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 animate​(net.runelite.api.Texture texture, int diff)  
      void draw​(int overlayColor)  
      void draw​(net.runelite.api.Projection projection, net.runelite.api.Scene scene, net.runelite.api.Renderable renderable, int orientation, int x, int y, int z, long hash)
      Draw a renderable in the scene
      void drawScene​(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)  
      void drawScenePaint​(net.runelite.api.Scene scene, net.runelite.api.SceneTilePaint paint, int plane, int tileX, int tileY)  
      void drawSceneTileModel​(net.runelite.api.Scene scene, net.runelite.api.SceneTileModel model, int tileX, int tileY)  
      void loadScene​(net.runelite.api.Scene scene)  
      void onConfigChanged​(ConfigChanged configChanged)  
      void onGameStateChanged​(net.runelite.api.events.GameStateChanged gameStateChanged)  
      void postDrawScene()  
      protected void shutDown()  
      protected void startUp()  
      void swapScene​(net.runelite.api.Scene scene)  
      boolean tileInFrustum​(net.runelite.api.Scene scene, float pitchSin, float pitchCos, float yawSin, float yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface net.runelite.api.hooks.DrawCallbacks

        despawnWorldView, drawDynamic, drawPass, drawTemp, drawZoneAlpha, drawZoneOpaque, invalidateZone, loadScene, postSceneDraw, preSceneDraw, 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
      • drawScene

        public void drawScene​(double cameraX,
                              double cameraY,
                              double cameraZ,
                              double cameraPitch,
                              double cameraYaw,
                              int plane)
        Specified by:
        drawScene in interface net.runelite.api.hooks.DrawCallbacks
      • postDrawScene

        public void postDrawScene()
        Specified by:
        postDrawScene in interface net.runelite.api.hooks.DrawCallbacks
      • drawScenePaint

        public void drawScenePaint​(net.runelite.api.Scene scene,
                                   net.runelite.api.SceneTilePaint paint,
                                   int plane,
                                   int tileX,
                                   int tileY)
        Specified by:
        drawScenePaint in interface net.runelite.api.hooks.DrawCallbacks
      • drawSceneTileModel

        public void drawSceneTileModel​(net.runelite.api.Scene scene,
                                       net.runelite.api.SceneTileModel model,
                                       int tileX,
                                       int tileY)
        Specified by:
        drawSceneTileModel in interface net.runelite.api.hooks.DrawCallbacks
      • draw

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

        public void animate​(net.runelite.api.Texture texture,
                            int diff)
        Specified by:
        animate 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.Scene scene)
        Specified by:
        loadScene 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
      • tileInFrustum

        public boolean tileInFrustum​(net.runelite.api.Scene scene,
                                     float pitchSin,
                                     float pitchCos,
                                     float yawSin,
                                     float yawCos,
                                     int cameraX,
                                     int cameraY,
                                     int cameraZ,
                                     int plane,
                                     int msx,
                                     int msy)
        Specified by:
        tileInFrustum in interface net.runelite.api.hooks.DrawCallbacks
      • draw

        public void draw​(net.runelite.api.Projection projection,
                         net.runelite.api.Scene scene,
                         net.runelite.api.Renderable renderable,
                         int orientation,
                         int x,
                         int y,
                         int z,
                         long hash)
        Draw a renderable in the scene
        Specified by:
        draw in interface net.runelite.api.hooks.DrawCallbacks