Ocular Engine
Vertex.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_VERTEX__H__
19 #define __H__OCULAR_GRAPHICS_VERTEX__H__
20 
21 #include "Math/Vector4.hpp"
22 #include "Math/Color.hpp"
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Graphics
37  {
38  // No need for packing since all individual elements are 32-bits (or multiples thereof) long (?)
39 
43  struct Vertex
44  {
52 
53  Vertex()
54  {
55  color = Core::Color::White();
56  }
57  };
58  }
62 }
67 //------------------------------------------------------------------------------------------
68 
69 #endif
Math::Vector4f uv0
Texture coordinates of the vertex.
Definition: Vertex.hpp:48
Math::Vector4f normal
Normal coordinates of the vertex.
Definition: Vertex.hpp:47
Math::Vector4f color
Base color of the vertex.
Definition: Vertex.hpp:46
Math::Vector4f position
Spatial coordinates of the vertex.
Definition: Vertex.hpp:45
Definition: Matrix3x3.hpp:39
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Math::Vector4f uv1
Texture coordinates of the vertex.
Definition: Vertex.hpp:49
Math::Vector4f uv2
Texture coordinates of the vertex.
Definition: Vertex.hpp:50
Definition: Vertex.hpp:43
Math::Vector4f uv3
Texture coordinates of the vertex.
Definition: Vertex.hpp:51
static Color const & White()
Definition: Color.cpp:257