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

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

#include <CreateShape.hpp>

Public Attributes

float width = 1.0f
float depth = 1.0f
 Width of the plane (X axis, default: 1.0).
glm::vec3 position = glm::vec3(0.0f)
 Depth of the plane (Z axis, default: 1.0).
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 subdivisionsX = 1u
 Scale factor (default: 1.0).
uint32_t subdivisionsZ = 1u
 Number of subdivisions along X (default: 1).

Detailed Description

Struct to hold parameters for creating a plane.

Member Data Documentation

◆ depth

float Object::Helper::CreatePlaneInfo::depth = 1.0f

Width of the plane (X axis, default: 1.0).

◆ position

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

Depth of the plane (Z axis, default: 1.0).

◆ rotation

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

Position in world space (default: origin).

◆ scale

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

Rotation as quaternion (default: identity).

◆ subdivisionsX

uint32_t Object::Helper::CreatePlaneInfo::subdivisionsX = 1u

Scale factor (default: 1.0).

◆ subdivisionsZ

uint32_t Object::Helper::CreatePlaneInfo::subdivisionsZ = 1u

Number of subdivisions along X (default: 1).

◆ width

float Object::Helper::CreatePlaneInfo::width = 1.0f

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