GameKit  0.0.1a
C++ gamedev tools
Vertex.hpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: Vertex.hpp
5  *
6  * Description:
7  *
8  * Created: 19/06/2018 23:37:18
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
14 #ifndef GK_VERTEX_HPP_
15 #define GK_VERTEX_HPP_
16 
17 #include "OpenGL.hpp"
18 
19 namespace gk {
20 
21 struct Vertex {
22  GLfloat coord3d[4] = {0, 0, 0, 1};
23  GLfloat texCoord[2] = {-1, -1};
24  GLfloat color[4] = {0, 0, 0, 1};
25  GLfloat normal[3] = {0, 0, 0};
26  GLfloat lightValue[2] = {-1, -1}; // FIXME
27  GLfloat blockType = -1; // FIXME
28  GLfloat ambientOcclusion = 5; // FIXME
29 };
30 
31 } // namespace gk
32 
33 #endif // GK_VERTEX_HPP_
GLfloat normal[3]
Definition: Vertex.hpp:25
GLfloat coord3d[4]
Definition: Vertex.hpp:22
GLfloat lightValue[2]
Definition: Vertex.hpp:26
GLfloat blockType
Definition: Vertex.hpp:27
GLfloat texCoord[2]
Definition: Vertex.hpp:23
GLfloat ambientOcclusion
Definition: Vertex.hpp:28
GLfloat color[4]
Definition: Vertex.hpp:24