Barotrauma Client Doc
Barotrauma.SpriteRecorder Class Reference
Inheritance diagram for Barotrauma.SpriteRecorder:

Public Member Functions

readonly record struct Command (Texture2D Texture, VertexPositionColorTexture VertexBL, VertexPositionColorTexture VertexBR, VertexPositionColorTexture VertexTL, VertexPositionColorTexture VertexTR, float Depth, Vector2 Min, Vector2 Max, int Index)
 
void Begin (SpriteSortMode sortMode)
 
void Draw (Texture2D texture, Vector2 pos, Rectangle? srcRect, Color color, float rotationRad, Vector2 origin, Vector2 scale, SpriteEffects effects, float depth)
 
void Draw (Texture2D texture, VertexPositionColorTexture[] vertices, float layerDepth, int? count=null)
 
void End ()
 
void Render (Camera cam)
 
void Dispose ()
 

Public Attributes

volatile bool ReadyToRender = false
 

Static Public Attributes

static BasicEffect BasicEffect = null
 

Properties

Vector2 Min [get]
 
Vector2 Max [get]
 

Detailed Description

Definition at line 10 of file SpriteRecorder.cs.

Member Function Documentation

◆ Begin()

void Barotrauma.SpriteRecorder.Begin ( SpriteSortMode  sortMode)

Definition at line 168 of file SpriteRecorder.cs.

◆ Command()

readonly record struct Barotrauma.SpriteRecorder.Command ( Texture2D  Texture,
VertexPositionColorTexture  VertexBL,
VertexPositionColorTexture  VertexBR,
VertexPositionColorTexture  VertexTL,
VertexPositionColorTexture  VertexTR,
float  Depth,
Vector2  Min,
Vector2  Max,
int  Index 
)

Definition at line 12 of file SpriteRecorder.cs.

◆ Dispose()

void Barotrauma.SpriteRecorder.Dispose ( )

Definition at line 339 of file SpriteRecorder.cs.

◆ Draw() [1/2]

void Barotrauma.SpriteRecorder.Draw ( Texture2D  texture,
Vector2  pos,
Rectangle?  srcRect,
Color  color,
float  rotationRad,
Vector2  origin,
Vector2  scale,
SpriteEffects  effects,
float  depth 
)

Definition at line 185 of file SpriteRecorder.cs.

◆ Draw() [2/2]

void Barotrauma.SpriteRecorder.Draw ( Texture2D  texture,
VertexPositionColorTexture[]  vertices,
float  layerDepth,
int?  count = null 
)

Definition at line 193 of file SpriteRecorder.cs.

◆ End()

void Barotrauma.SpriteRecorder.End ( )

Definition at line 215 of file SpriteRecorder.cs.

◆ Render()

void Barotrauma.SpriteRecorder.Render ( Camera  cam)

Definition at line 298 of file SpriteRecorder.cs.

Member Data Documentation

◆ BasicEffect

BasicEffect Barotrauma.SpriteRecorder.BasicEffect = null
static

Definition at line 153 of file SpriteRecorder.cs.

◆ ReadyToRender

volatile bool Barotrauma.SpriteRecorder.ReadyToRender = false

Definition at line 162 of file SpriteRecorder.cs.

Property Documentation

◆ Max

Vector2 Barotrauma.SpriteRecorder.Max
get

Definition at line 166 of file SpriteRecorder.cs.

◆ Min

Vector2 Barotrauma.SpriteRecorder.Min
get

Definition at line 165 of file SpriteRecorder.cs.