#include <entity.hh>
|
| | 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 () |
| |
| Mesh * | get_mesh () const |
| |
| Material * | get_material () const |
| |
◆ 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 |
|
) |
| |
◆ 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 |
|
) |
| |
◆ _angle_degrees
| float Entity::_angle_degrees |
|
private |
◆ _material
◆ _mesh
◆ _position
| glm::vec3 Entity::_position |
|
private |
◆ _rotation_dir
| glm::vec3 Entity::_rotation_dir |
|
private |
◆ _scale
◆ _word_position
| glm::mat4 Entity::_word_position |
|
private |
The documentation for this class was generated from the following files: