aboutsummaryrefslogtreecommitdiff
path: root/07-july/src/vertex.h
blob: 90152c8e5a8a62cc44cae39e88a43e4c629aa967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef VERTEX_H
#define VERTEX_H

#include <GL/glew.h>
#include "math/vector2f.h"
#include "math/vector3f.h"

typedef struct
{
    GLfloat r, g, b, a;
} color_t;

typedef struct
{
    vec3_t position;
    color_t color;
    vec2_t texCoord;
    vec3_t normal;
} vertex_t;

#endif // VERTEX_H