VoxelEngine
 
Loading...
Searching...
No Matches
engine::Vertex Struct Reference

Public Member Functions

 Vertex (glm::vec3 pos, glm::vec3 n, glm::vec2 uv, int textureID, int ao)
 
 Vertex (glm::vec3 pos, glm::vec3 n, glm::vec2 uv)
 
void translate (glm::vec3 t)
 
void rotate (glm::vec3 axis, float angle)
 
void data (int textureID, int ao)
 

Static Public Member Functions

static gl::VertexLayout layout ()
 

Public Attributes

glm::vec3 pos
 
glm::vec3 normal
 
glm::vec2 uv
 
unsigned int m_data
 Holds TextureID (0-15bits) and AO (16-17)
 

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