Table of Contents

Interface IDrawable

Namespace
BSGameLib.Game
Assembly
BSGameLib.Game.dll

Something the game draws each frame. DrawableComponent is the usual implementation.

public interface IDrawable : IIdentifiable<Guid>, IEquatable<IDrawable>
Inherited Members

Properties

DrawOrder

The order this drawable is drawn in relative to others. Lower values are drawn first.

int DrawOrder { get; set; }

Property Value

int

IsVisible

Whether the game draws this drawable.

bool IsVisible { get; set; }

Property Value

bool

Methods

BeginDraw()

Called before Draw(IGameTime) each frame.

void BeginDraw()

Draw(IGameTime)

Draws the drawable for this frame.

void Draw(IGameTime gameTime)

Parameters

gameTime IGameTime

EndDraw()

Called after Draw(IGameTime) each frame.

void EndDraw()

LoadContent()

Loads the assets the drawable needs.

void LoadContent()

UnloadContent()

Releases the assets that LoadContent() loaded.

void UnloadContent()