JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Attributes | List of all members
Vertex Struct Reference

Position and texture coordinates. More...

#include <jngl/Vertex.hpp>

Public Attributes

float x
 Screen x position.
 
float y
 Screen y position.
 
float u
 X coordinate in the texture, from 0 to 1.
 
float v
 Y coordinate in the texture, from 0 to 1.
 

Detailed Description

Position and texture coordinates.

Definition at line 9 of file Vertex.hpp.

Member Data Documentation

◆ x

float x

Screen x position.

Definition at line 11 of file Vertex.hpp.

◆ y

float y

Screen y position.

Definition at line 14 of file Vertex.hpp.

◆ u

float u

X coordinate in the texture, from 0 to 1.

Definition at line 17 of file Vertex.hpp.

◆ v

float v

Y coordinate in the texture, from 0 to 1.

Definition at line 20 of file Vertex.hpp.


The documentation for this struct was generated from the following file: