CG_Labs  2021.2
parametric_shapes.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "core/helpers.hpp"
4 
6 {
22  bonobo::mesh_data createQuad(float const width, float const height,
23  unsigned int const horizontal_split_count = 0u,
24  unsigned int const vertical_split_count = 0u);
25 
45  bonobo::mesh_data createSphere(float const radius,
46  unsigned int const longitude_split_count,
47  unsigned int const latitude_split_count);
48 
72  bonobo::mesh_data createTorus(float const major_radius,
73  float const minor_radius,
74  unsigned int const major_split_count,
75  unsigned int const minor_split_count);
76 
98  bonobo::mesh_data createCircleRing(float const radius,
99  float const spread_length,
100  unsigned int const circle_split_count,
101  unsigned int const spread_split_count);
102 }
Definition: parametric_shapes.hpp:6
bonobo::mesh_data createTorus(float const major_radius, float const minor_radius, unsigned int const major_split_count, unsigned int const minor_split_count)
Create a torus for a given tesselation level and make it available to OpenGL.
Definition: parametric_shapes.cpp:136
bonobo::mesh_data createQuad(float const width, float const height, unsigned int const horizontal_split_count=0u, unsigned int const vertical_split_count=0u)
Create a quad a given tesselation level and make it available to OpenGL.
Definition: parametric_shapes.cpp:13
bonobo::mesh_data createCircleRing(float const radius, float const spread_length, unsigned int const circle_split_count, unsigned int const spread_split_count)
Create a circle ring for a given tesselation level and make it available to OpenGL.
Definition: parametric_shapes.cpp:146
bonobo::mesh_data createSphere(float const radius, unsigned int const longitude_split_count, unsigned int const latitude_split_count)
Create a sphere for a given tesselation level and make it available to OpenGL.
Definition: parametric_shapes.cpp:126
Contains the data for a mesh in OpenGL.
Definition: helpers.hpp:42