CitroFlex3ds 0.1
CitroFlex3DS is a lightweight game engine designed specifically for Nintendo 3DS homebrew development. It provides a simple framework for creating games and applications.
 
Loading...
Searching...
No Matches
Objects::Line Class Reference

Line object. More...

#include <Objects.hpp>

Inheritance diagram for Objects::Line:
Objects::Object

Public Member Functions

virtual void Update (Scene::Scene *scene) override
 Update and draw the line.
 
void SetEndPoint (double x, double y)
 Set the end point of the line.
 
- Public Member Functions inherited from Objects::Object
double get_x ()
 Get the X position.
 
void SetX (double new_x)
 Set the X position.
 
void AddX (double add_x)
 Add to the X position.
 
double get_y ()
 Get the Y position.
 
void SetY (double new_y)
 Set the Y position.
 
void AddY (double add_y)
 Add to the Y position.
 
virtual void Init ()
 Initialize the object.
 
void UpdateAttached ()
 Updates the objects attached to this instance.
 
void Attach (Object *obj)
 Attach an object to this object and set its relative position.
 
void SetScene (Scene::Scene *scene)
 Setter for the currentscene (called by the Scene instance)
 
Scene::Scene * GetScene () const
 Getter for the currentscene (called by the Scene instance)
 
void SetInputManager (Input::InputManager *manager)
 Setter for the inputmanager (called by the Scene instance)
 

Public Attributes

u32 color = Colors::clrWhite
 Color of the line.
 
float thickness = 1.0f
 Thickness of the line.
 
- Public Attributes inherited from Objects::Object
bool visible = true
 
std::vector< Objects::Object * > attachedElements
 
Object * parent = nullptr
 
int id = -1
 

Additional Inherited Members

- Protected Member Functions inherited from Objects::Object
virtual void OnUpdate (Scene::Scene *scene)
 Custom update logic (can be override to add custom logic before Drawing)
 
Input::InputManager * GetInputManager () const
 Getter for the InputManager.
 

Detailed Description

Line object.

Member Function Documentation

◆ SetEndPoint()

void Line::SetEndPoint ( double x,
double y )

Set the end point of the line.

Parameters
xEnd X position
yEnd Y position

◆ Update()

void Line::Update ( Scene::Scene * scene)
overridevirtual

Update and draw the line.

Parameters
scenePointer to the current scene

Reimplemented from Objects::Object.


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