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

Inherits Terraria.GameContent.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 PrepareRenderTarget (GraphicsDevice device, SpriteBatch spriteBatch)
 

Properties

bool IsReady [get]
 
- Properties inherited from Terraria.GameContent.INeedRenderTargetContent
bool IsReady [get]
 

Member Function Documentation

◆ PrepareRenderTarget()

void Terraria.Graphics.Renderers.NPCHeadRenderer.PrepareRenderTarget ( GraphicsDevice  device,
SpriteBatch  spriteBatch 
)

Property Documentation

◆ IsReady

bool Terraria.Graphics.Renderers.NPCHeadRenderer.IsReady
get