Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.PlayerHeadDrawRenderTargetContent Class Reference

Public Member Functions

void UsePlayer (Player player)
 
void UseColor (Color color)
 
void Request ()
 
RenderTarget2D GetTarget ()
 
void PrepareRenderTarget (GraphicsDevice device, SpriteBatch spriteBatch)
 
void Reset ()
 

Public Attributes

Color _borderColor = Color.White
 

Protected Member Functions

override void HandleUseReqest (GraphicsDevice device, SpriteBatch spriteBatch)
 
void PrepareARenderTarget_AndListenToEvents (ref RenderTarget2D target, GraphicsDevice device, int neededWidth, int neededHeight, RenderTargetUsage usage)
 
void PrepareARenderTarget_WithoutListeningToEvents (ref RenderTarget2D target, GraphicsDevice device, int neededWidth, int neededHeight, RenderTargetUsage usage)
 

Protected Attributes

int width = 84
 
int height = 84
 
RenderTarget2D _target
 
bool _wasPrepared
 

Package Functions

override void DrawTheContent (SpriteBatch spriteBatch)
 

Properties

bool IsReady [get]
 

Private Member Functions

void target_Disposing (object sender, EventArgs e)
 
void target_ContentLost (object sender, EventArgs e)
 

Private Attributes

Player _player
 
readonly List< DrawData_drawData = new List<DrawData>()
 
readonly List< int > _dust = new List<int>()
 
readonly List< int > _gore = new List<int>()
 
EffectPass _coloringShader
 
RenderTarget2D _helperTarget
 
bool _wasRequested
 

Detailed Description

Definition at line 7 of file PlayerHeadDrawRenderTargetContent.cs.


The documentation for this class was generated from the following file: