Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NPCHeadDrawRenderTargetContent.cs
Go to the documentation of this file.
3
5
7{
9
10 public void SetTexture(Texture2D texture)
11 {
12 if (_theTexture != texture)
13 {
14 _theTexture = texture;
15 _wasPrepared = false;
16 width = texture.Width + 8;
17 height = texture.Height + 8;
18 }
19 }
20
21 internal override void DrawTheContent(SpriteBatch spriteBatch)
22 {
23 spriteBatch.Draw(_theTexture, new Vector2(4f, 4f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
24 }
25}
void Draw(Texture2D texture, Vector2 position, Color color)