GameKit
0.0.1a
C++ gamedev tools
include
gk
gl
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_
gk
Definition:
AudioPlayer.hpp:21
OpenGL.hpp
gk::Vertex::normal
GLfloat normal[3]
Definition:
Vertex.hpp:25
gk::Vertex::coord3d
GLfloat coord3d[4]
Definition:
Vertex.hpp:22
gk::Vertex::lightValue
GLfloat lightValue[2]
Definition:
Vertex.hpp:26
gk::Vertex::blockType
GLfloat blockType
Definition:
Vertex.hpp:27
gk::Vertex
Definition:
Vertex.hpp:21
gk::Vertex::texCoord
GLfloat texCoord[2]
Definition:
Vertex.hpp:23
gk::Vertex::ambientOcclusion
GLfloat ambientOcclusion
Definition:
Vertex.hpp:28
gk::Vertex::color
GLfloat color[4]
Definition:
Vertex.hpp:24
Generated by
1.8.12