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
-
-
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(Renderable renderable, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, 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
drawSceneModel(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTileModel model, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
void
drawScenePaint(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTilePaint paint, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
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
drawScene
-
-
-
-
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(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTilePaint paint, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
- Specified by:
drawScenePaint
in interfaceDrawCallbacks
-
drawSceneModel
public void drawSceneModel(int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, SceneTileModel model, int tileZ, int tileX, int tileY, int zoom, int centerX, int centerY)
- Specified by:
drawSceneModel
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(Renderable renderable, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, long hash)
Draw a renderable in the scene- Specified by:
draw
in interfaceDrawCallbacks
- Parameters:
renderable
-orientation
-pitchSin
-pitchCos
-yawSin
-yawCos
-x
-y
-z
-hash
-
-
-