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

Public Member Functions

 LevelRenderer (Level level)
 
void ReloadTextures ()
 
void Flash ()
 
void Update (float deltaTime, Camera cam)
 
void SetVertices (VertexPositionTexture[] wallVertices, VertexPositionTexture[] wallEdgeVertices, Texture2D wallTexture, Texture2D edgeTexture, Color color)
 
void DrawBackground (SpriteBatch spriteBatch, Camera cam, LevelObjectManager backgroundSpriteManager=null, BackgroundCreatureManager backgroundCreatureManager=null)
 
void DrawForeground (SpriteBatch spriteBatch, Camera cam, LevelObjectManager backgroundSpriteManager=null)
 
void DrawDebugOverlay (SpriteBatch spriteBatch, Camera cam)
 
void RenderWalls (GraphicsDevice graphicsDevice, Camera cam)
 
void Dispose ()
 

Static Public Member Functions

static VertexPositionColorTexture[] GetColoredVertices (VertexPositionTexture[] vertices, Color color)
 

Properties

Color FlashColor [get]
 
float ChromaticAberrationStrength [get, set]
 
float CollapseEffectStrength [get, set]
 
Vector2 CollapseEffectOrigin [get, set]
 

Detailed Description

Definition at line 70 of file LevelRenderer.cs.

Constructor & Destructor Documentation

◆ LevelRenderer()

Barotrauma.LevelRenderer.LevelRenderer ( Level  level)

Definition at line 105 of file LevelRenderer.cs.

Member Function Documentation

◆ Dispose()

void Barotrauma.LevelRenderer.Dispose ( )

Definition at line 535 of file LevelRenderer.cs.

◆ DrawBackground()

void Barotrauma.LevelRenderer.DrawBackground ( SpriteBatch  spriteBatch,
Camera  cam,
LevelObjectManager  backgroundSpriteManager = null,
BackgroundCreatureManager  backgroundCreatureManager = null 
)

Definition at line 240 of file LevelRenderer.cs.

◆ DrawDebugOverlay()

void Barotrauma.LevelRenderer.DrawDebugOverlay ( SpriteBatch  spriteBatch,
Camera  cam 
)

Definition at line 346 of file LevelRenderer.cs.

◆ DrawForeground()

void Barotrauma.LevelRenderer.DrawForeground ( SpriteBatch  spriteBatch,
Camera  cam,
LevelObjectManager  backgroundSpriteManager = null 
)

Definition at line 336 of file LevelRenderer.cs.

◆ Flash()

void Barotrauma.LevelRenderer.Flash ( )

Definition at line 143 of file LevelRenderer.cs.

◆ GetColoredVertices()

static VertexPositionColorTexture [] Barotrauma.LevelRenderer.GetColoredVertices ( VertexPositionTexture[]  vertices,
Color  color 
)
static

Definition at line 217 of file LevelRenderer.cs.

◆ ReloadTextures()

void Barotrauma.LevelRenderer.ReloadTextures ( )

Definition at line 135 of file LevelRenderer.cs.

◆ RenderWalls()

void Barotrauma.LevelRenderer.RenderWalls ( GraphicsDevice  graphicsDevice,
Camera  cam 
)

Definition at line 443 of file LevelRenderer.cs.

◆ SetVertices()

void Barotrauma.LevelRenderer.SetVertices ( VertexPositionTexture[]  wallVertices,
VertexPositionTexture[]  wallEdgeVertices,
Texture2D  wallTexture,
Texture2D  edgeTexture,
Color  color 
)

Definition at line 227 of file LevelRenderer.cs.

◆ Update()

void Barotrauma.LevelRenderer.Update ( float  deltaTime,
Camera  cam 
)

Definition at line 148 of file LevelRenderer.cs.

Property Documentation

◆ ChromaticAberrationStrength

float Barotrauma.LevelRenderer.ChromaticAberrationStrength
getset

Definition at line 88 of file LevelRenderer.cs.

◆ CollapseEffectOrigin

Vector2 Barotrauma.LevelRenderer.CollapseEffectOrigin
getset

Definition at line 98 of file LevelRenderer.cs.

◆ CollapseEffectStrength

float Barotrauma.LevelRenderer.CollapseEffectStrength
getset

Definition at line 93 of file LevelRenderer.cs.

◆ FlashColor

Color Barotrauma.LevelRenderer.FlashColor
get

Definition at line 79 of file LevelRenderer.cs.