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. More...
 
float y
 Screen y position. More...
 
float u
 X coordinate in the texture, from 0 to 1. More...
 
float v
 Y coordinate in the texture, from 0 to 1. More...
 

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: