Loading...
Searching...
No Matches
hellfire::Quad Class Reference

#include <Quad.h>

Collaboration diagram for hellfire::Quad:

Classes

struct  Config
 

Static Public Member Functions

static EntityID create (Scene *scene, const std::string &name, const Config &config=Config{})
 
static std::shared_ptr< Meshcreate_mesh ()
 
static void get_quad_data (std::vector< Vertex > &vertices, std::vector< unsigned int > &indices, const glm::vec3 &color=glm::vec3(1.0f))
 

Private Member Functions

 Quad ()=delete
 

Static Private Attributes

static const std::vector< float > vertices_
 
static const std::vector< float > uvs_
 
static const std::vector< unsigned int > indices_
 

Detailed Description

Definition at line 18 of file Quad.h.

Constructor & Destructor Documentation

◆ Quad()

hellfire::Quad::Quad ( )
privatedelete

Member Function Documentation

◆ create()

EntityID hellfire::Quad::create ( Scene scene,
const std::string &  name,
const Config config = Config{} 
)
static

Definition at line 33 of file Quad.cpp.

◆ create_mesh()

std::shared_ptr< Mesh > hellfire::Quad::create_mesh ( )
static

Definition at line 62 of file Quad.cpp.

◆ get_quad_data()

void hellfire::Quad::get_quad_data ( std::vector< Vertex > &  vertices,
std::vector< unsigned int > &  indices,
const glm::vec3 &  color = glm::vec3(1.0f) 
)
static

Definition at line 69 of file Quad.cpp.

Member Data Documentation

◆ indices_

const std::vector< unsigned int > hellfire::Quad::indices_
staticprivate
Initial value:
= {
0, 1, 3,
0, 3, 2,
}

Definition at line 37 of file Quad.h.

◆ uvs_

const std::vector< float > hellfire::Quad::uvs_
staticprivate
Initial value:
= {
1.0, 1.0,
0.0, 1.0,
1.0, 0.0,
0.0, 0.0
}

Definition at line 36 of file Quad.h.

◆ vertices_

const std::vector< float > hellfire::Quad::vertices_
staticprivate
Initial value:
= {
1.0, 1.0, 0.0,
-1.0, 1.0, 0.0,
1.0, -1.0, 0.0,
-1.0, -1.0, 0.0
}

Definition at line 35 of file Quad.h.


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