CG_Labs  2021.2
Namespaces | Functions
parametric_shapes.hpp File Reference
#include "core/helpers.hpp"

Go to the source code of this file.

Namespaces

 parametric_shapes
 

Functions

bonobo::mesh_data parametric_shapes::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. More...
 
bonobo::mesh_data parametric_shapes::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. More...
 
bonobo::mesh_data parametric_shapes::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. More...
 
bonobo::mesh_data parametric_shapes::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. More...