tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Graphics.Renderers.LegacyPlayerRenderer Class Reference

Inherits Terraria.Graphics.Renderers.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 Terraria.Graphics.Renderers.LegacyPlayerRenderer.DrawPlayer ( Camera  camera,
Player  drawPlayer,
Vector2  position,
float  rotation,
Vector2  rotationOrigin,
float  shadow = 0f,
float  scale = 1f 
)

◆ DrawPlayerHead()

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

◆ DrawPlayers()

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