#include <mesh.h>
Public Member Functions | |
bool | IsIntersecting (const Segment &segment) |
Mesh () | |
Mesh (GLenum render_mode) | |
void | Render (const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const |
void | SetBoundingBox () |
void | SetLightDirection (const glm::vec3 &light_direction) |
void | SetShader () |
void | SetShader (bool is_lighting_on) |
Protected Attributes | |
BoundingBox * | bounding_box_ |
bool | is_bounding_box_on_ |
bool | is_lighting_on_ |
glm::vec3 | light_direction_ |
GLuint | uniform_light_vec_ |
GLuint | uniform_mv_mat_ |
Mesh::Mesh | ( | ) |
Mesh::Mesh | ( | GLenum | render_mode | ) |
bool Mesh::IsIntersecting | ( | const Segment & | segment | ) |
void Mesh::Render | ( | const glm::mat4 & | projection_mat, |
const glm::mat4 & | view_mat | ||
) | const [virtual] |
Implements tango_gl::DrawableObject.
void Mesh::SetBoundingBox | ( | ) |
void Mesh::SetLightDirection | ( | const glm::vec3 & | light_direction | ) |
void Mesh::SetShader | ( | ) |
Reimplemented from tango_gl::DrawableObject.
void Mesh::SetShader | ( | bool | is_lighting_on | ) |
BoundingBox* tango_gl::Mesh::bounding_box_ [protected] |
bool tango_gl::Mesh::is_bounding_box_on_ [protected] |
bool tango_gl::Mesh::is_lighting_on_ [protected] |
glm::vec3 tango_gl::Mesh::light_direction_ [protected] |
GLuint tango_gl::Mesh::uniform_light_vec_ [protected] |
GLuint tango_gl::Mesh::uniform_mv_mat_ [protected] |