Axle 0.1.0
A simple, lightweight C++ game framework built on top of Raylib.
 
Loading...
Searching...
No Matches
Axle::Shape Class Referenceabstract

Base class for all shapes. More...

#include <shapes.h>

Inheritance diagram for Axle::Shape:
Axle::Rectangle

Public Member Functions

virtual void Draw () const =0
 Draw the shape on the screen.
 

Public Attributes

Axle::Color color
 The color of the shape.
 
Axle::Math::Vector2 position
 The position of the center of the shape.
 

Protected Member Functions

 Shape ()
 Construct a new Shape object.
 

Detailed Description

Base class for all shapes.

This class is used to represent a shape that can be drawn on the screen. It should not be instantiated directly, but rather be used as a base class for other shapes.

Constructor & Destructor Documentation

◆ Shape()

Axle::Shape::Shape ( )
protected

Construct a new Shape object.

This constructor is protected to prevent instantiation of the Shape class.

The color is set to white and the position is set to (0, 0).

Member Function Documentation

◆ Draw()

virtual void Axle::Shape::Draw ( ) const
pure virtual

Draw the shape on the screen.

Implemented in Axle::Rectangle.


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