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="Utilizes the 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
-
-
Constructor Summary
Constructors Constructor Description GpuPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
animate(Texture texture, int diff)
void
draw(int overlayColor)
void
draw(Projection projection, Scene scene, Renderable renderable, int orientation, int x, int y, int z, long hash)
Draw a renderable in the scenevoid
drawScene(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)
void
drawScenePaint(Scene scene, SceneTilePaint paint, int plane, int tileX, int tileY)
void
drawSceneTileModel(Scene scene, SceneTileModel model, int tileX, int tileY)
void
loadScene(Scene scene)
void
onConfigChanged(ConfigChanged configChanged)
void
onGameStateChanged(GameStateChanged gameStateChanged)
void
postDrawScene()
protected void
shutDown()
protected void
startUp()
void
swapScene(Scene scene)
boolean
tileInFrustum(Scene scene, int pitchSin, int pitchCos, int yawSin, int yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)
-
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
despawnWorldView, drawDynamic, drawPass, drawTemp, drawZone, invalidateZone, loadScene, prepareSceneDraw
-
-
-
-
Method Detail
-
onConfigChanged
@Subscribe public void onConfigChanged(ConfigChanged configChanged)
-
drawScene
public void drawScene(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)
- Specified by:
drawScene
in interfaceDrawCallbacks
-
postDrawScene
public void postDrawScene()
- Specified by:
postDrawScene
in interfaceDrawCallbacks
-
drawScenePaint
public void drawScenePaint(Scene scene, SceneTilePaint paint, int plane, int tileX, int tileY)
- Specified by:
drawScenePaint
in interfaceDrawCallbacks
-
drawSceneTileModel
public void drawSceneTileModel(Scene scene, SceneTileModel model, int tileX, int tileY)
- Specified by:
drawSceneTileModel
in interfaceDrawCallbacks
-
draw
public void draw(int overlayColor)
- Specified by:
draw
in interfaceDrawCallbacks
-
animate
public void animate(Texture texture, int diff)
- Specified by:
animate
in interfaceDrawCallbacks
-
onGameStateChanged
@Subscribe public void onGameStateChanged(GameStateChanged gameStateChanged)
-
loadScene
public void loadScene(Scene scene)
- Specified by:
loadScene
in interfaceDrawCallbacks
-
swapScene
public void swapScene(Scene scene)
- Specified by:
swapScene
in interfaceDrawCallbacks
-
tileInFrustum
public boolean tileInFrustum(Scene scene, int pitchSin, int pitchCos, int yawSin, int yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)
- Specified by:
tileInFrustum
in interfaceDrawCallbacks
-
draw
public void draw(Projection projection, Scene scene, Renderable renderable, int orientation, int x, int y, int z, long hash)
Draw a renderable in the scene- Specified by:
draw
in interfaceDrawCallbacks
-
-