Stay organized with collections Save and categorize content based on your preferences.

CardboardMesh

#include <cardboard.h>

Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates.

Summary

Public attributes

indices
int *
Indices buffer.
n_indices
int
Number of indices.
n_vertices
int
Number of vertices.
uvs
float *
UV coordinates buffer. 2 floats per uv: u, v.
vertices
float *
Vertices buffer. 2 floats per vertex: x, y.

Public attributes

indices

int * CardboardMesh::indices

Indices buffer.

n_indices

int CardboardMesh::n_indices

Number of indices.

n_vertices

int CardboardMesh::n_vertices

Number of vertices.

uvs

float * CardboardMesh::uvs

UV coordinates buffer. 2 floats per uv: u, v.

vertices

float * CardboardMesh::vertices

Vertices buffer. 2 floats per vertex: x, y.