Loading...
Searching...
No Matches
hellfire::Sphere Class Reference

#include <Sphere.h>

Collaboration diagram for hellfire::Sphere:

Classes

struct  Config
 

Static Public Member Functions

static EntityID create (Scene *scene, const std::string &name, const Config &config)
 
static std::shared_ptr< Meshcreate_mesh (int rings=32, int sectors=32)
 
static void get_sphere_data (std::vector< Vertex > &vertices, std::vector< unsigned int > &indices, float radius, int rings=32, int sectors=32)
 

Static Private Member Functions

static void subdivide_triangle (std::vector< glm::vec3 > &vertices, const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3, int depth)
 

Detailed Description

Definition at line 24 of file Sphere.h.

Member Function Documentation

◆ create()

EntityID hellfire::Sphere::create ( Scene scene,
const std::string &  name,
const Config config 
)
static

Definition at line 12 of file Sphere.cpp.

◆ create_mesh()

std::shared_ptr< Mesh > hellfire::Sphere::create_mesh ( int  rings = 32,
int  sectors = 32 
)
static

Definition at line 48 of file Sphere.cpp.

◆ get_sphere_data()

void hellfire::Sphere::get_sphere_data ( std::vector< Vertex > &  vertices,
std::vector< unsigned int > &  indices,
float  radius,
int  rings = 32,
int  sectors = 32 
)
static

Definition at line 55 of file Sphere.cpp.

◆ subdivide_triangle()

void hellfire::Sphere::subdivide_triangle ( std::vector< glm::vec3 > &  vertices,
const glm::vec3 &  v1,
const glm::vec3 &  v2,
const glm::vec3 &  v3,
int  depth 
)
staticprivate

Definition at line 104 of file Sphere.cpp.


The documentation for this class was generated from the following files: