Class Renderable
- Namespace
- OmegaEngine.Graphics.Renderables
- Assembly
- OmegaEngine.dll
An object that can be Render(Camera, GetEffectiveLights)ed by the Engine.
public abstract class Renderable : EngineElement, IDisposable
- Inheritance
-
objectRenderable
- Implements
- Derived
- Inherited Members
Properties
Alpha
The level of transparency from 0 (solid) to 255 (invisible), AlphaChannel, BinaryAlphaChannel or AdditivBlending
public int Alpha { get; set; }
Property Value
Name
Text value to make it easier to identify a particular render entity
public string? Name { get; set; }
Property Value
RenderCount
How many times has this entity been rendered in this frame?
public int RenderCount { get; }
Property Value
Remarks
Used to debug culling methods
Visible
Shall the entity be rendered?
public bool Visible { get; set; }
Property Value
Wireframe
Shall this entity be drawn in wireframe-mode? (used for debugging)
public bool Wireframe { get; set; }
Property Value
Methods
OnPreRender()
Called once per frame before rendering the entity. Will only be called once, even if the entity is rendered in multiple views. Will not be called if the entity is excluded by a culling test.
protected virtual void OnPreRender()
PrepareRender()
Should be called before rendering anything.
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
Triggered once per frame before rendering the entity. Will only be triggered once, even if the entity is rendered in multiple views. Will not be triggered if the entity is excluded by a culling test.
public event Action? PreRender