Table of Contents

Class Renderable

Namespace
OmegaEngine.Graphics.Renderables
Assembly
OmegaEngine.dll

An object that can be Render(Camera, GetLights)ed by the Engine.

public abstract class Renderable : EngineElement, IDisposable
Inheritance
Renderable
Implements
Derived
Inherited Members
Extension Methods

Properties

Alpha

The level of transparency from 0 (solid) to 255 (invisible), AlphaChannel, BinaryAlphaChannel or AdditivBlending

public int Alpha { get; set; }

Property Value

int

Name

Text value to make it easier to identify a particular render entity

public string? Name { get; set; }

Property Value

string

RenderCount

How many times has this entity been rendered in this frame?

public int RenderCount { get; }

Property Value

int

Remarks

Used to debug culling methods

VisibilityDistance

The maximum distance from which the entity is visible - 0 for infinite

public float VisibilityDistance { get; set; }

Property Value

float

Visible

Shall the entity be rendered?

public bool Visible { get; set; }

Property Value

bool

Wireframe

Shall this entity be drawn in wireframe-mode? (used for debugging)

public bool Wireframe { get; set; }

Property Value

bool

Methods

OnPreRender()

protected virtual void OnPreRender()

PrepareRender()

Should be called before rendering anything - usually called by base constructor

protected void PrepareRender()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Events

PreRender

Occurs once per frame before rendering the entity. Will not be executed if the entity is excluded by a culling test.

public event Action? PreRender

Event Type

Action