Objects::Mesh::Default::Cube

Cube Structure in Unified Engine

The Cube structure in the Unified Engine extends the Mesh class and provides the pre-defined vertices, colors, texcoords, normals, and indices needed to represent a cube in 3D space. The Cube structure is specifically designed to make it easier for developers to integrate and use a cube shape without the need to define these attributes manually.

Structure Properties

The properties that define the attributes of the cube.

struct Cube : public Mesh{
    inline Cube(){
        // Vertices, Colors, Texcoords, Normals for each face of the cube are defined here

        // Indices to construct the cube from vertices
    }
};

Last updated