Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::xgl::Sphere::Parameters Struct Reference

Parameters for generating the data. More...

#include <Sphere.h>

Public Attributes

float radius
 
unsigned stacks
 
unsigned sectors
 
int stacks_used
 
bool triangles {true}
 

Detailed Description

Parameters for generating the data.

Member Data Documentation

◆ radius

float sf::xgl::Sphere::Parameters::radius

When the radius is negative a concave sphere is drawn with normals on the inside. Only useful when drawing a partial sphere.

◆ sectors

unsigned sf::xgl::Sphere::Parameters::sectors

Amount sectors to draw the sphere around the z-axis.

◆ stacks

unsigned sf::xgl::Sphere::Parameters::stacks

Amount stacks to draw the sphere with.

◆ stacks_used

int sf::xgl::Sphere::Parameters::stacks_used

Allows drawing only partial sphere in the direction of the Z-axis.

◆ triangles

bool sf::xgl::Sphere::Parameters::triangles {true}

Used to draw triangles instead of quads.


The documentation for this struct was generated from the following file: