WoopWoop-Docs
Loading...
Searching...
No Matches
Public Attributes | Static Protected Member Functions | Properties | Private Attributes | List of all members
WoopWoop.Renderer Class Reference

Base class for rendering components. More...

Inheritance diagram for WoopWoop.Renderer:
WoopWoop.Component WoopWoop.BasicShapeRenderer WoopWoop.LineRenderer WoopWoop.PolygonRenderer WoopWoop.TextureRenderer WoopWoop.UI.TextRenderer WoopWoop.UI.UIBoundsComponent WoopWoop.UI.Button WoopWoop.UI.Checkbox WoopWoop.UI.ColorPicker WoopWoop.UI.DropdownMenu WoopWoop.UI.Label WoopWoop.UI.Slider WoopWoop.UI.UIWindow WoopWoop.UI.SliderBar

Public Attributes

Color Color = Raylib.BLACK
 The color of the renderer.
 

Static Protected Member Functions

static Vector2 GetOriginalPositionOfTransform (Transform transform, Pivot pivot)
 Gets the original position of the transform based on the pivot.
 

Properties

byte Layer [get, set]
 The rendering layer of the renderer.
 
- Properties inherited from WoopWoop.Component
Entity entity [get, private set]
 The entity to which this component is attached.
 
Transform transform [get]
 The transform of the entity to which this component is attached.
 
bool Enabled = true [get, set]
 Determines whether the component is enabled.
 

Private Attributes

byte layer = 0
 

Additional Inherited Members

- Public Member Functions inherited from WoopWoop.Component
void Attach (Entity entity)
 Attaches the component to an entity.
 
virtual void Awake ()
 Awake is called when the component is initialized, regardless of whether or not the script is enabled.
 
virtual void Start ()
 Called when the component is started if it's enabled.
 
virtual void Update (float deltaTime)
 Called every frame to update the component's state.
 
virtual void OnEndOfFrame ()
 Called on the end of every frame.
 
virtual void Stop ()
 Called when the component is removed.
 
virtual void OnDrawGizmo ()
 Tells the renderer how to draw the object's editor gizmos.
 

Detailed Description

Base class for rendering components.

Member Function Documentation

◆ GetOriginalPositionOfTransform()

static Vector2 WoopWoop.Renderer.GetOriginalPositionOfTransform ( Transform transform,
Pivot pivot )
staticprotected

Gets the original position of the transform based on the pivot.

Parameters
transformThe transform.
pivotThe pivot point.
Returns
The original position of the transform.

Member Data Documentation

◆ Color

Color WoopWoop.Renderer.Color = Raylib.BLACK

The color of the renderer.

◆ layer

byte WoopWoop.Renderer.layer = 0
private

Property Documentation

◆ Layer

byte WoopWoop.Renderer.Layer
getset

The rendering layer of the renderer.


The documentation for this class was generated from the following file: