runelite-client: draw by hooking to MainBufferProvider draw()

Remove old double buffer method with canvas replacement
This commit is contained in:
Adam
2017-06-14 21:34:35 -04:00
parent 5f71ad036a
commit a3747e0a2a
5 changed files with 76 additions and 95 deletions

View File

@@ -356,11 +356,12 @@ public class Client
}
/**
* Returns the local player's current experience in the specified {@link Skill}.
* Returns the local player's current experience in the specified
* {@link Skill}.
*
* @param skill the {@link Skill} to retrieve the experience for
* @return the local player's current experience in the specified {@link Skill}, or -1 if the {@link Skill} isn't
* valid
* @return the local player's current experience in the specified
* {@link Skill}, or -1 if the {@link Skill} isn't valid
*/
public int getSkillExperience(Skill skill)
{
@@ -389,4 +390,14 @@ public class Client
return experiences[idx];
}
public int getGameDrawingMode()
{
return client.getGameDrawingMode();
}
public void setGameDrawingMode(int gameDrawingMode)
{
client.setGameDrawingMode(gameDrawingMode);
}
}