JNGL
Vertex.hpp
Go to the documentation of this file.
1 // Copyright 2010-2019 Jan Niklas Hasse <[email protected]>
2 // For conditions of distribution and use, see copyright notice in LICENSE.txt
4 #pragma once
5 
6 namespace jngl {
7 
9 struct Vertex {
11  float x;
12 
14  float y;
15 
17  float u;
18 
20  float v;
21 };
22 
23 } // namespace jngl
jngl::Vertex::y
float y
Screen y position.
Definition: Vertex.hpp:14
jngl
JNGL's main namespace.
Definition: App.hpp:9
jngl::Vertex::x
float x
Screen x position.
Definition: Vertex.hpp:11
jngl::Vertex::u
float u
X coordinate in the texture, from 0 to 1.
Definition: Vertex.hpp:17
jngl::Vertex::v
float v
Y coordinate in the texture, from 0 to 1.
Definition: Vertex.hpp:20
jngl::Vertex
Position and texture coordinates.
Definition: Vertex.hpp:9