Package net.runelite.client.plugins.gpu
Class GpuPlugin
- java.lang.Object
-
- net.runelite.client.plugins.Plugin
-
- net.runelite.client.plugins.gpu.GpuPlugin
-
- All Implemented Interfaces:
com.google.inject.Module,DrawCallbacks
@PluginDescriptor(name="GPU", description="Offloads rendering to GPU", enabledByDefault=false, tags={"fog","draw distance"}, loadInSafeMode=false) public class GpuPlugin extends Plugin implements DrawCallbacks
-
-
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 voiddespawnWorldView(WorldView worldView)voiddraw(int overlayColor)voiddrawDynamic(Projection worldProjection, Scene scene, TileObject tileObject, Renderable r, Model m, int orient, int x, int y, int z)voiddrawPass(Projection projection, Scene scene, int pass)voiddrawTemp(Projection worldProjection, Scene scene, GameObject gameObject, Model m, int orient, int x, int y, int z)voiddrawZoneAlpha(Projection entityProjection, Scene scene, int level, int zx, int zz)voiddrawZoneOpaque(Projection entityProjection, Scene scene, int zx, int zz)voidinvalidateZone(Scene scene, int zx, int zz)voidloadScene(WorldView worldView, Scene scene)voidonConfigChanged(ConfigChanged configChanged)voidonGameStateChanged(GameStateChanged gameStateChanged)voidonPostClientTick(PostClientTick event)voidpostSceneDraw(Scene scene)voidpreSceneDraw(Scene scene, float cameraX, float cameraY, float cameraZ, float cameraPitch, float cameraYaw, int minLevel, int level, int maxLevel, Set<Integer> hideRoofIds)protected voidshutDown()protected voidstartUp()voidswapScene(Scene scene)-
Methods inherited from class net.runelite.client.plugins.Plugin
configure, equals, getInjector, getName, hashCode, resetConfiguration
-
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
animate, draw, drawScene, drawScenePaint, drawSceneTileModel, loadScene, postDrawScene, tileInFrustum, zoneInFrustum
-
-
-
-
Method Detail
-
onConfigChanged
@Subscribe public void onConfigChanged(ConfigChanged configChanged)
-
preSceneDraw
public void preSceneDraw(Scene scene, float cameraX, float cameraY, float cameraZ, float cameraPitch, float cameraYaw, int minLevel, int level, int maxLevel, Set<Integer> hideRoofIds)
- Specified by:
preSceneDrawin interfaceDrawCallbacks
-
postSceneDraw
public void postSceneDraw(Scene scene)
- Specified by:
postSceneDrawin interfaceDrawCallbacks
-
drawZoneOpaque
public void drawZoneOpaque(Projection entityProjection, Scene scene, int zx, int zz)
- Specified by:
drawZoneOpaquein interfaceDrawCallbacks
-
drawZoneAlpha
public void drawZoneAlpha(Projection entityProjection, Scene scene, int level, int zx, int zz)
- Specified by:
drawZoneAlphain interfaceDrawCallbacks
-
drawPass
public void drawPass(Projection projection, Scene scene, int pass)
- Specified by:
drawPassin interfaceDrawCallbacks
-
drawDynamic
public void drawDynamic(Projection worldProjection, Scene scene, TileObject tileObject, Renderable r, Model m, int orient, int x, int y, int z)
- Specified by:
drawDynamicin interfaceDrawCallbacks
-
drawTemp
public void drawTemp(Projection worldProjection, Scene scene, GameObject gameObject, Model m, int orient, int x, int y, int z)
- Specified by:
drawTempin interfaceDrawCallbacks
-
invalidateZone
public void invalidateZone(Scene scene, int zx, int zz)
- Specified by:
invalidateZonein interfaceDrawCallbacks
-
onPostClientTick
@Subscribe public void onPostClientTick(PostClientTick event)
-
draw
public void draw(int overlayColor)
- Specified by:
drawin interfaceDrawCallbacks
-
onGameStateChanged
@Subscribe public void onGameStateChanged(GameStateChanged gameStateChanged)
-
loadScene
public void loadScene(WorldView worldView, Scene scene)
- Specified by:
loadScenein interfaceDrawCallbacks
-
despawnWorldView
public void despawnWorldView(WorldView worldView)
- Specified by:
despawnWorldViewin interfaceDrawCallbacks
-
swapScene
public void swapScene(Scene scene)
- Specified by:
swapScenein interfaceDrawCallbacks
-
-