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

Inherits INeedRenderTargetContent.

Public Member Functions

 NPCHeadRenderer (Asset< Texture2D >[] matchingArray)
 
void DrawWithOutlines (Entity entity, int headId, Vector2 position, Color color, float rotation, float scale, SpriteEffects effects)
 
void PrepareRenderTarget (GraphicsDevice device, SpriteBatch spriteBatch)
 
void Reset ()
 
void PrepareRenderTarget (GraphicsDevice device, SpriteBatch spriteBatch)
 
void Reset ()
 

Properties

bool IsReady [get]
 
- Properties inherited from INeedRenderTargetContent
bool IsReady [get]
 

Member Function Documentation

◆ PrepareRenderTarget()

void NPCHeadRenderer.PrepareRenderTarget ( GraphicsDevice  device,
SpriteBatch  spriteBatch 
)

◆ Reset()

void NPCHeadRenderer.Reset ( )

Property Documentation

◆ IsReady

bool NPCHeadRenderer.IsReady
get