tModLoader v2024.03
A mod to make and play Terraria mods
LegacyPlayerRenderer Class Reference

Inherits IPlayerRenderer.

Public Member Functions

void DrawPlayer (Camera camera, Player drawPlayer, Vector2 position, float rotation, Vector2 rotationOrigin, float shadow=0f, float scale=1f)
 
void DrawPlayerHead (Camera camera, Player drawPlayer, Vector2 position, float alpha=1f, float scale=1f, Color borderColor=default(Color))
 
void DrawPlayers (Camera camera, IEnumerable< Player > players)
 
void DrawPlayer (Camera camera, Player drawPlayer, Vector2 position, float rotation, Vector2 rotationOrigin, float shadow=0f, float scale=1f)
 
void DrawPlayerHead (Camera camera, Player drawPlayer, Vector2 position, float alpha=1f, float scale=1f, Color borderColor=default(Color))
 
void DrawPlayers (Camera camera, IEnumerable< Player > players)
 

Properties

static SamplerState MountedSamplerState [get]
 

Member Function Documentation

◆ DrawPlayer()

void LegacyPlayerRenderer.DrawPlayer ( Camera  camera,
Player  drawPlayer,
Vector2  position,
float  rotation,
Vector2  rotationOrigin,
float  shadow = 0f,
float  scale = 1f 
)

Implements IPlayerRenderer.

◆ DrawPlayerHead()

void LegacyPlayerRenderer.DrawPlayerHead ( Camera  camera,
Player  drawPlayer,
Vector2  position,
float  alpha = 1f,
float  scale = 1f,
Color  borderColor = default(Color) 
)

Implements IPlayerRenderer.

◆ DrawPlayers()

void LegacyPlayerRenderer.DrawPlayers ( Camera  camera,
IEnumerable< Player players 
)

Implements IPlayerRenderer.