Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Object::Helper::CreateSphereInfo Struct Reference

Struct to hold parameters for creating a sphere. More...

#include <CreateShape.hpp>

Public Attributes

float radius = 0.5f
glm::vec3 position = glm::vec3(0.0f)
 Radius of the sphere (default: 0.5).
glm::quat rotation = glm::quat(1.0f, 0.0f, 0.0f, 0.0f)
 Position in world space (default: origin).
glm::vec3 scale = glm::vec3(1.0f)
 Rotation as quaternion (default: identity).
uint32_t segments = 32u
 Scale factor (default: 1.0).
uint32_t rings = 16u
 Number of horizontal segments (default: 32).

Detailed Description

Struct to hold parameters for creating a sphere.

Member Data Documentation

◆ position

glm::vec3 Object::Helper::CreateSphereInfo::position = glm::vec3(0.0f)

Radius of the sphere (default: 0.5).

◆ radius

float Object::Helper::CreateSphereInfo::radius = 0.5f

◆ rings

uint32_t Object::Helper::CreateSphereInfo::rings = 16u

Number of horizontal segments (default: 32).

◆ rotation

glm::quat Object::Helper::CreateSphereInfo::rotation = glm::quat(1.0f, 0.0f, 0.0f, 0.0f)

Position in world space (default: origin).

◆ scale

glm::vec3 Object::Helper::CreateSphereInfo::scale = glm::vec3(1.0f)

Rotation as quaternion (default: identity).

◆ segments

uint32_t Object::Helper::CreateSphereInfo::segments = 32u

Scale factor (default: 1.0).


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