JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
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
6namespace jngl {
7
9struct Vertex {
11 float x;
12
14 float y;
15
17 float u;
18
20 float v;
21};
22
23} // namespace jngl
JNGL's main namespace.
Position and texture coordinates.
Definition Vertex.hpp:9
float v
Y coordinate in the texture, from 0 to 1.
Definition Vertex.hpp:20
float u
X coordinate in the texture, from 0 to 1.
Definition Vertex.hpp:17
float y
Screen y position.
Definition Vertex.hpp:14
float x
Screen x position.
Definition Vertex.hpp:11