Raftel Engine
 
Loading...
Searching...
No Matches
shape.hpp File Reference

Defines the Shape class for 2D shapes in a graphical environment. More...

#include <vector>
#include "raftel\transform.hpp"

Go to the source code of this file.

Classes

class  Raftel::Shape
 Represents a 2D shape made up of vertices that can be rendered to the screen. More...
 

Detailed Description

Defines the Shape class for 2D shapes in a graphical environment.

Date
2025-03-10
Authors
Carlos Mazcuñán Blanes, Marc Folgado Balbás

This file contains the declaration of the Shape class, which is responsible for creating and rendering a 2D shape using OpenGL. The Shape class uses vertex data to define the shape and stores transformation data through the Transform2D class. The class manages the OpenGL Vertex Array Object (VAO) and Vertex Buffer Object (VBO) for rendering the shape.

The shape can be transformed using the provided Transform2D object, and it can be drawn using the draw() function.

Definition in file shape.hpp.