#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_ |
tango_gl::Mesh::Mesh | ( | GLenum | render_mode | ) |
bool tango_gl::Mesh::IsIntersecting | ( | const Segment & | segment | ) |
void tango_gl::Mesh::Render | ( | const glm::mat4 & | projection_mat, |
const glm::mat4 & | view_mat | ||
) | const [virtual] |
Implements tango_gl::DrawableObject.
void tango_gl::Mesh::SetBoundingBox | ( | ) |
void tango_gl::Mesh::SetLightDirection | ( | const glm::vec3 & | light_direction | ) |
void tango_gl::Mesh::SetShader | ( | ) |
Reimplemented from tango_gl::DrawableObject.
void tango_gl::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] |