Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::CubeGeometryPrimitiveAttributes Struct Reference

Cube geometry primitive attributes. More...

#include <GeometryPrimitives.h>

Inheritance diagram for Diligent::CubeGeometryPrimitiveAttributes:
Diligent::GeometryPrimitiveAttributes

Public Attributes

float Size = 1.f
 The size of the cube.
 
- Public Attributes inherited from Diligent::GeometryPrimitiveAttributes
GEOMETRY_PRIMITIVE_TYPE Type = GEOMETRY_PRIMITIVE_TYPE_UNDEFINED
 The geometry primitive type, see Diligent::GEOMETRY_PRIMITIVE_TYPE.
 
GEOMETRY_PRIMITIVE_VERTEX_FLAGS VertexFlags = GEOMETRY_PRIMITIVE_VERTEX_FLAG_ALL
 
Uint32 NumSubdivisions = 0
 The number of subdivisions.
 

Detailed Description

Cube geometry primitive attributes.

Member Data Documentation

◆ Size

float Diligent::CubeGeometryPrimitiveAttributes::Size = 1.f

The size of the cube.

The cube is centered at (0, 0, 0) and has the size of Size x Size x Size. If the cube size is 1, the coordinates of the cube vertices are in the range [-0.5, 0.5].