My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Entity Class Reference

#include <entity.hh>

Collaboration diagram for Entity:
Collaboration graph

Public Member Functions

 Entity (Mesh *mesh, Material *material, float position=0.0f, float scale=1.0f, float angle_degrees=0.0f)
 
 Entity (Model &model, float position=0.0f, float scale=1.0f, float angle_degrees=0.0f)
 
void position (float x, float y, float z)
 
void inc_position (float x, float y, float z)
 
void angle (float angle)
 
void inc_angle (float angle)
 
void set_rotation_dir (float x, float y, float z)
 
void scale (float scale)
 
void scale (float scale_x, float scale_y, float scale_z)
 
void inc_scale (float scale)
 
glm::mat4 & get_model_position ()
 
Meshget_mesh () const
 
Materialget_material () const
 

Private Attributes

Mesh_mesh
 
Material_material
 
glm::vec3 _position
 
glm::mat4 _word_position
 
glm::vec3 _scale
 
float _angle_degrees
 
glm::vec3 _rotation_dir
 

Constructor & Destructor Documentation

◆ Entity() [1/2]

Entity::Entity ( Mesh mesh,
Material material,
float  position = 0.0f,
float  scale = 1.0f,
float  angle_degrees = 0.0f 
)

◆ Entity() [2/2]

Entity::Entity ( Model model,
float  position = 0.0f,
float  scale = 1.0f,
float  angle_degrees = 0.0f 
)

Member Function Documentation

◆ angle()

void Entity::angle ( float  angle)

◆ get_material()

Material * Entity::get_material ( ) const
inline

◆ get_mesh()

Mesh * Entity::get_mesh ( ) const
inline

◆ get_model_position()

glm::mat4 & Entity::get_model_position ( )

◆ inc_angle()

void Entity::inc_angle ( float  angle)

◆ inc_position()

void Entity::inc_position ( float  x,
float  y,
float  z 
)

◆ inc_scale()

void Entity::inc_scale ( float  scale)

◆ position()

void Entity::position ( float  x,
float  y,
float  z 
)

◆ scale() [1/2]

void Entity::scale ( float  scale)

◆ scale() [2/2]

void Entity::scale ( float  scale_x,
float  scale_y,
float  scale_z 
)

◆ set_rotation_dir()

void Entity::set_rotation_dir ( float  x,
float  y,
float  z 
)

Member Data Documentation

◆ _angle_degrees

float Entity::_angle_degrees
private

◆ _material

Material* Entity::_material
private

◆ _mesh

Mesh* Entity::_mesh
private

◆ _position

glm::vec3 Entity::_position
private

◆ _rotation_dir

glm::vec3 Entity::_rotation_dir
private

◆ _scale

glm::vec3 Entity::_scale
private

◆ _word_position

glm::mat4 Entity::_word_position
private

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