Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
bezier.h
1#ifndef OE_SCENE_LOADER_BEZIER_H
2#define OE_SCENE_LOADER_BEZIER_H
3
4#include "../mesh.h"
5#include "base.h"
6
7namespace oe::scene::loader
8{
9 class Bezier : public BaseLoader
10 {
11 public:
12 Bezier(const int32_t patch_size = 9);
13
14 void addControlPoint(const Vertex& point);
15
22 oe::scene::Mesh buildMesh(const int32_t lod, const bool generate_texcoords = true, const bool generate_normals = true);
23
24 const std::vector<Vertex>& getControlPoints() const { return _control_points; }
25 private:
26 int32_t _patch_size;
27
28 std::vector<Vertex> _control_points;
29 };
30}
31
32#endif
Definition mesh.h:333
Definition base.h:11
Definition bezier.h:10
oe::scene::Mesh buildMesh(const int32_t lod, const bool generate_texcoords=true, const bool generate_normals=true)
Build a mesh of specified LOD.
Generators of geometry / scene by computation (eg. Bezier) or from files (eg. Gltf)
Definition base.h:9
Definition vertex.h:43