JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
jngl
Vertex.hpp
Go to the documentation of this file.
1
// Copyright 2010-2019 Jan Niklas Hasse <jhasse@bixense.com>
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
JNGL's main namespace.
Definition
Achievement.hpp:10
jngl::Vertex
Position and texture coordinates.
Definition
Vertex.hpp:9
jngl::Vertex::v
float v
Y coordinate in the texture, from 0 to 1.
Definition
Vertex.hpp:20
jngl::Vertex::u
float u
X coordinate in the texture, from 0 to 1.
Definition
Vertex.hpp:17
jngl::Vertex::y
float y
Screen y position.
Definition
Vertex.hpp:14
jngl::Vertex::x
float x
Screen x position.
Definition
Vertex.hpp:11