Table of Contents

Interface IDrawable

Namespace
Stride.Games
Assembly
Stride.Games.dll

An interface for a drawable game component that is called by the GameBase class.

public interface IDrawable

Properties

DrawOrder

Gets the draw order relative to other objects. IDrawable objects with a lower value are drawn first.

int DrawOrder { get; }

Property Value

int

The draw order.

Visible

Gets a value indicating whether the Draw(GameTime) method should be called by Draw(GameTime).

bool Visible { get; }

Property Value

bool

true if this drawable component is visible; otherwise, false.

Methods

BeginDraw()

Starts the drawing of a frame. This method is followed by calls to Draw and EndDraw.

bool BeginDraw()

Returns

bool

true if Draw should occur, false otherwise

Draw(GameTime)

Draws this instance.

void Draw(GameTime gameTime)

Parameters

gameTime GameTime

The current timing.

EndDraw()

Ends the drawing of a frame. This method is preceeded by calls to Draw and BeginDraw.

void EndDraw()

Events

DrawOrderChanged

Occurs when the DrawOrder property changes.

event EventHandler<EventArgs> DrawOrderChanged

Event Type

EventHandler<EventArgs>

VisibleChanged

Occurs when the Visible property changes.

event EventHandler<EventArgs> VisibleChanged

Event Type

EventHandler<EventArgs>