This commit is contained in:
Kbz-8
2025-06-16 15:18:27 +02:00
parent 15510fa8a7
commit cd7e5ad26f
165 changed files with 78107 additions and 0 deletions

21
Runtime/Includes/Graphics/MeshFactory.h git.filemode.normal_file
View File

@@ -0,0 +1,21 @@
#ifndef __SCOP_MESH_FACTORY__
#define __SCOP_MESH_FACTORY__
#include <memory>
#include <Maths/Vec2.h>
#include <Maths/Vec3.h>
namespace Scop
{
std::shared_ptr<class Mesh> CreateQuad();
std::shared_ptr<class Mesh> CreateQuad(float x, float y, float width, float height);
std::shared_ptr<class Mesh> CreateQuad(const Vec2f& position, const Vec2f& size);
std::shared_ptr<class Mesh> CreateCube();
std::shared_ptr<class Mesh> CreatePyramid();
std::shared_ptr<class Mesh> CreateSphere(std::uint32_t x_segments = 32, std::uint32_t y_segments = 32);
std::shared_ptr<class Mesh> CreateCapsule(float radius = 0.5f, float mid_height = 2.0f, int radial_degments = 64, int rings = 8);
std::shared_ptr<class Mesh> CreatePlane(float width, float height, const Vec3f& normal);
}
#endif