tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.ARenderTargetContentByRequest Class Referenceabstract

Inherits Terraria.GameContent.INeedRenderTargetContent.

Inherited by Terraria.GameContent.AnOutlinedDrawRenderTargetContent, Terraria.GameContent.PlayerQueenSlimeMountTextureContent, Terraria.GameContent.PlayerRainbowWingsTextureContent, and Terraria.GameContent.PlayerTitaniumStormBuffTextureContent.

Public Member Functions

RenderTarget2D GetTarget ()
 
void PrepareRenderTarget (GraphicsDevice device, SpriteBatch spriteBatch)
 
void Request ()
 
void PrepareRenderTarget (GraphicsDevice device, SpriteBatch spriteBatch)
 

Protected Member Functions

abstract 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

RenderTarget2D _target
 
bool _wasPrepared
 

Properties

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

Member Function Documentation

◆ PrepareRenderTarget()

void Terraria.GameContent.ARenderTargetContentByRequest.PrepareRenderTarget ( GraphicsDevice  device,
SpriteBatch  spriteBatch 
)

Property Documentation

◆ IsReady

bool Terraria.GameContent.ARenderTargetContentByRequest.IsReady
get