Package net.runelite.api.hooks
Interface DrawCallbacks
-
public interface DrawCallbacks
-
-
Field Summary
Fields Modifier and Type Field Description static intGPUGPU mode on.static intHILLSKEWGPU hillskew support.static intNO_VERTEX_SNAPPINGDisable vertex snapping for animationsstatic intNORMALSRequests normals be computed for models.static intPASS_ALPHAstatic intPASS_OPAQUEstatic intZBUFEnable zbuf renderer.static intZBUF_ZONE_FRUSTUM_CHECKEnable thezoneInFrustum(int, int, int, int)callback
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidanimate(Texture texture, int diff)default voiddespawnWorldView(WorldView worldView)voiddraw(int overlayColor)Called when a frame should be drawn.default voiddraw(Projection projection, Scene scene, Renderable renderable, int orientation, int x, int y, int z, long hash)default voiddrawDynamic(Projection worldProjection, Scene scene, TileObject tileObject, Renderable r, Model m, int orient, int x, int y, int z)default voiddrawPass(Projection entityProjection, Scene scene, int pass)default voiddrawScene(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)Called before the scene is drawndefault voiddrawScenePaint(Scene scene, SceneTilePaint paint, int plane, int tileX, int tileZ)default voiddrawSceneTileModel(Scene scene, SceneTileModel model, int tileX, int tileZ)default voiddrawTemp(Projection worldProjection, Scene scene, GameObject gameObject, Model m)default voiddrawZoneAlpha(Projection entityProjection, Scene scene, int level, int zx, int zz)default voiddrawZoneOpaque(Projection entityProjection, Scene scene, int zx, int zz)default voidinvalidateZone(Scene scene, int zx, int zz)default voidloadScene(Scene scene)default voidloadScene(WorldView worldView, Scene scene)default voidpostDrawScene()Called after the scene has been drawndefault voidpostSceneDraw(Scene scene)default voidpreSceneDraw(Scene scene, float cameraX, float cameraY, float cameraZ, float cameraPitch, float cameraYaw, int minLevel, int level, int maxLevel, Set<Integer> hideRoofIds)voidswapScene(Scene scene)default booleantileInFrustum(Scene scene, float pitchSin, float pitchCos, float yawSin, float yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)default booleanzoneInFrustum(int zoneX, int zoneZ, int maxY, int minY)
-
-
-
Field Detail
-
GPU
static final int GPU
GPU mode on.- See Also:
- Constant Field Values
-
HILLSKEW
static final int HILLSKEW
GPU hillskew support. Enables theModel.getUnskewedModel()API to get the unskewed model.- See Also:
- Constant Field Values
-
NORMALS
static final int NORMALS
Requests normals be computed for models. Enables theModel.getVertexNormalsX()Model.getVertexNormalsY()Model.getVertexNormalsZ()API.- See Also:
- Constant Field Values
-
NO_VERTEX_SNAPPING
static final int NO_VERTEX_SNAPPING
Disable vertex snapping for animations- See Also:
- Constant Field Values
-
ZBUF
static final int ZBUF
Enable zbuf renderer.- See Also:
- Constant Field Values
-
ZBUF_ZONE_FRUSTUM_CHECK
static final int ZBUF_ZONE_FRUSTUM_CHECK
Enable thezoneInFrustum(int, int, int, int)callback- See Also:
- Constant Field Values
-
PASS_OPAQUE
static final int PASS_OPAQUE
- See Also:
- Constant Field Values
-
PASS_ALPHA
static final int PASS_ALPHA
- See Also:
- Constant Field Values
-
-
Method Detail
-
draw
default void draw(Projection projection, Scene scene, Renderable renderable, int orientation, int x, int y, int z, long hash)
-
drawScenePaint
default void drawScenePaint(Scene scene, SceneTilePaint paint, int plane, int tileX, int tileZ)
-
drawSceneTileModel
default void drawSceneTileModel(Scene scene, SceneTileModel model, int tileX, int tileZ)
-
draw
void draw(int overlayColor)
Called when a frame should be drawn.- Parameters:
overlayColor- Color of full-viewport overlays, if any
-
drawScene
default void drawScene(double cameraX, double cameraY, double cameraZ, double cameraPitch, double cameraYaw, int plane)Called before the scene is drawn
-
postDrawScene
default void postDrawScene()
Called after the scene has been drawn
-
animate
default void animate(Texture texture, int diff)
-
loadScene
default void loadScene(Scene scene)
-
swapScene
void swapScene(Scene scene)
-
tileInFrustum
default boolean tileInFrustum(Scene scene, float pitchSin, float pitchCos, float yawSin, float yawCos, int cameraX, int cameraY, int cameraZ, int plane, int msx, int msy)
-
zoneInFrustum
default boolean zoneInFrustum(int zoneX, int zoneZ, int maxY, int minY)
-
despawnWorldView
default void despawnWorldView(WorldView worldView)
-
preSceneDraw
default void preSceneDraw(Scene scene, float cameraX, float cameraY, float cameraZ, float cameraPitch, float cameraYaw, int minLevel, int level, int maxLevel, Set<Integer> hideRoofIds)
-
postSceneDraw
default void postSceneDraw(Scene scene)
-
drawPass
default void drawPass(Projection entityProjection, Scene scene, int pass)
-
drawZoneOpaque
default void drawZoneOpaque(Projection entityProjection, Scene scene, int zx, int zz)
-
drawZoneAlpha
default void drawZoneAlpha(Projection entityProjection, Scene scene, int level, int zx, int zz)
-
drawDynamic
default void drawDynamic(Projection worldProjection, Scene scene, TileObject tileObject, Renderable r, Model m, int orient, int x, int y, int z)
-
drawTemp
default void drawTemp(Projection worldProjection, Scene scene, GameObject gameObject, Model m)
-
invalidateZone
default void invalidateZone(Scene scene, int zx, int zz)
-
-