BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
CubeGenerator Class Reference

#include <Generators.h>

Static Public Member Functions

static void vertices (GLfloat verts[], float size)
 
static void indices (GLuint inds[])
 

Detailed Description

Generates a cube, if given a size.

Member Function Documentation

◆ indices()

void CubeGenerator::indices ( GLuint inds[])
static

Assigns an array the indices of a basic cube.

Parameters
indsThe array to assign to.

◆ vertices()

void CubeGenerator::vertices ( GLfloat verts[],
float size )
static

Assigns an array the vertices of a basic cube.

Parameters
vertsThe array to assign to.
sizeThe size multiplier for the cube.

The documentation for this class was generated from the following files: