#include <band.h>
Public Types | |
enum | BandMode { kNormal = 0, kKeepLeft = 1, kKeepRight = 2 } |
Public Member Functions | |
Band (const unsigned int max_legnth) | |
void | ClearVertexArray () |
void | Render (const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const |
void | SetVertexArray (const std::vector< glm::vec3 > &v, const glm::vec3 &up) |
void | SetWidth (const float width) |
void | UpdateVertexArray (const glm::mat4 m, BandMode mode) |
void | UpdateVertexArray (const glm::mat4 m) |
Private Attributes | |
float | band_width_ |
unsigned int | max_length_ |
glm::vec3 | pivot_left |
glm::vec3 | pivot_right |
std::vector< glm::vec3 > | vertices_v_ |
tango_gl::Band::Band | ( | const unsigned int | max_legnth | ) |
void tango_gl::Band::ClearVertexArray | ( | ) |
void tango_gl::Band::Render | ( | const glm::mat4 & | projection_mat, |
const glm::mat4 & | view_mat | ||
) | const [virtual] |
Implements tango_gl::DrawableObject.
void tango_gl::Band::SetVertexArray | ( | const std::vector< glm::vec3 > & | v, |
const glm::vec3 & | up | ||
) |
void tango_gl::Band::SetWidth | ( | const float | width | ) |
void tango_gl::Band::UpdateVertexArray | ( | const glm::mat4 | m, |
BandMode | mode | ||
) |
void tango_gl::Band::UpdateVertexArray | ( | const glm::mat4 | m | ) |
float tango_gl::Band::band_width_ [private] |
unsigned int tango_gl::Band::max_length_ [private] |
glm::vec3 tango_gl::Band::pivot_left [private] |
glm::vec3 tango_gl::Band::pivot_right [private] |
std::vector<glm::vec3> tango_gl::Band::vertices_v_ [private] |