jubilant-funicular
Public Member Functions | Public Attributes | List of all members
nta::Glyph Struct Reference

represents what is essentially a sprite More...

#include <SpriteBatch.h>

Collaboration diagram for nta::Glyph:
Collaboration graph
[legend]

Public Member Functions

 Glyph (crvec4 posRect, crvec4 uvRect, GLuint texture, float d, crvec4 color)
 
 Glyph (crvec4 posRect, crvec4 uvRect, GLuint tex, float d, crvec4 col, float angle)
 

Public Attributes

GLuint textureID
 the texture used by the glyph
 
float depth
 the depth of the glyph
 
Vertex2D topLeft
 the vertices of the four corners of the glyph
 
Vertex2D topRight
 
Vertex2D botRight
 
Vertex2D botLeft
 

Detailed Description

represents what is essentially a sprite

Definition at line 13 of file SpriteBatch.h.

Constructor & Destructor Documentation

◆ Glyph()

nta::Glyph::Glyph ( crvec4  posRect,
crvec4  uvRect,
GLuint  tex,
float  d,
crvec4  col,
float  angle 
)
inline
Todo:
Use model matrix?

Definition at line 34 of file SpriteBatch.h.


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