Working on meshes

This commit is contained in:
Yousef Khadadeh 2026-05-23 18:27:45 +03:00
parent c479ccb9e2
commit 7b472fe18d
652 changed files with 81120 additions and 852 deletions

View file

@ -17,9 +17,9 @@
*/
#include "CanvasComponent.hpp"
#include "BrushStrokeCanvasComponent.hpp"
#include "ImageCanvasComponent.hpp"
#include "EllipseCanvasComponent.hpp"
#include "MeshCanvasComponent.hpp"
#include "RectangleCanvasComponent.hpp"
#include "TextBoxCanvasComponent.hpp"
@ -34,8 +34,8 @@ void CanvasComponent::get_used_resources(std::unordered_set<NetworkingObjects::N
CanvasComponent* CanvasComponent::allocate_comp(CanvasComponentType type) {
switch(type) {
case CanvasComponentType::BRUSHSTROKE:
return new BrushStrokeCanvasComponent;
case CanvasComponentType::MESH:
return new MeshCanvasComponent;
case CanvasComponentType::RECTANGLE:
return new RectangleCanvasComponent;
case CanvasComponentType::ELLIPSE: