Adding some comments.

This commit is contained in:
2021-08-19 23:29:48 -07:00
parent 357c171d3a
commit 45a3ec30f5
9 changed files with 67 additions and 23 deletions

View File

@ -13,16 +13,22 @@
/** Structure containing information about a primitive */
typedef struct {
/** How many vertices are in the primitive */
int32_t verticeCount;
/** How many indices are in the primitive */
int32_t indiceCount;
/** Pointer to the vertex buffer on the GPU */
GLuint vertexBuffer;
/** Pointer to the index buffer on the GPU */
GLuint indexBuffer;
} primitive_t;
/** Structure containing vertice position information */
typedef struct {
/** Coordinates */
float x, y, z;
/** Texture UVs */
float u, v;
} vertice_t;