#include <segment_drawable.h>
Public Member Functions | |
SegmentDrawable () | |
void | UpdateSegment (const Segment &segment) |
![]() | |
Line (float line_width, GLenum render_mode) | |
void | Render (const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const |
void | SetLineWidth (const float pixels) |
void | UpdateLineVertices (const std::vector< glm::vec3 > &vec_vertices) |
![]() | |
void | DeleteGlResources () |
DrawableObject () | |
DrawableObject (const DrawableObject &other)=delete | |
const DrawableObject & | operator= (const DrawableObject &)=delete |
void | SetAlpha (const float alpha) |
void | SetColor (const Color &color) |
void | SetColor (const float red, const float green, const float blue) |
void | SetShader () |
void | SetVertices (const std::vector< GLfloat > &vertices) |
void | SetVertices (const std::vector< GLfloat > &vertices, const std::vector< GLfloat > &normals) |
void | SetVertices (const std::vector< GLfloat > &vertices, const std::vector< GLushort > &indices) |
![]() | |
Transform * | GetParent () |
const Transform * | GetParent () const |
glm::vec3 | GetPosition () const |
glm::quat | GetRotation () const |
glm::vec3 | GetScale () const |
glm::mat4 | GetTransformationMatrix () const |
const Transform & | operator= (const Transform &rhs)=delete |
void | SetParent (Transform *transform) |
void | SetPosition (const glm::vec3 &position) |
void | SetRotation (const glm::quat &rotation) |
void | SetScale (const glm::vec3 &scale) |
void | SetTransformationMatrix (const glm::mat4 &transform_mat) |
Transform () | |
Transform (const Transform &other)=delete | |
void | Translate (const glm::vec3 &translation) |
virtual | ~Transform () |
Additional Inherited Members | |
![]() | |
float | line_width_ |
std::vector< glm::vec3 > | vec_vertices_ |
![]() | |
float | alpha_ |
GLuint | attrib_normals_ |
GLuint | attrib_vertices_ |
float | blue_ |
float | green_ |
std::vector< GLushort > | indices_ |
std::vector< GLfloat > | normals_ |
float | red_ |
GLenum | render_mode_ |
GLuint | shader_program_ |
GLuint | uniform_color_ |
GLuint | uniform_mvp_mat_ |
std::vector< GLfloat > | vertices_ |
Definition at line 24 of file segment_drawable.h.
tango_gl::SegmentDrawable::SegmentDrawable | ( | ) |
Definition at line 20 of file segment_drawable.cpp.
void tango_gl::SegmentDrawable::UpdateSegment | ( | const Segment & | segment | ) |
Definition at line 25 of file segment_drawable.cpp.