Public Member Functions | Private Attributes | List of all members
tango_gl::Quad Class Reference

#include <quad.h>

Inheritance diagram for tango_gl::Quad:
Inheritance graph
[legend]

Public Member Functions

Quadoperator= (const Quad &)=delete
 
 Quad ()
 
 Quad (const Quad &other)=delete
 
void Render (const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const
 
void SetTextureId (GLuint texture_id)
 
 ~Quad ()
 
- Public Member Functions inherited from tango_gl::DrawableObject
void DeleteGlResources ()
 
 DrawableObject ()
 
 DrawableObject (const DrawableObject &other)=delete
 
const DrawableObjectoperator= (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< GLushort > &indices)
 
void SetVertices (const std::vector< GLfloat > &vertices, const std::vector< GLfloat > &normals)
 
- Public Member Functions inherited from tango_gl::Transform
const TransformGetParent () const
 
TransformGetParent ()
 
glm::vec3 GetPosition () const
 
glm::quat GetRotation () const
 
glm::vec3 GetScale () const
 
glm::mat4 GetTransformationMatrix () const
 
const Transformoperator= (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 ()
 

Private Attributes

GLuint attrib_vertices_
 
GLuint shader_program_
 
GLuint texture_coords_
 
GLuint texture_handle
 
GLuint texture_id_
 
GLuint uniform_mvp_mat_
 
GLuint vertex_buffer_
 

Additional Inherited Members

- Protected Attributes inherited from tango_gl::DrawableObject
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_
 

Detailed Description

Definition at line 23 of file quad.h.

Constructor & Destructor Documentation

◆ Quad() [1/2]

tango_gl::Quad::Quad ( )

Definition at line 45 of file quad.cpp.

◆ Quad() [2/2]

tango_gl::Quad::Quad ( const Quad other)
delete

◆ ~Quad()

tango_gl::Quad::~Quad ( )

Definition at line 58 of file quad.cpp.

Member Function Documentation

◆ operator=()

Quad& tango_gl::Quad::operator= ( const Quad )
delete

◆ Render()

void tango_gl::Quad::Render ( const glm::mat4 projection_mat,
const glm::mat4 view_mat 
) const
virtual

Implements tango_gl::DrawableObject.

Definition at line 62 of file quad.cpp.

◆ SetTextureId()

void tango_gl::Quad::SetTextureId ( GLuint  texture_id)

Definition at line 60 of file quad.cpp.

Member Data Documentation

◆ attrib_vertices_

GLuint tango_gl::Quad::attrib_vertices_
private

Definition at line 36 of file quad.h.

◆ shader_program_

GLuint tango_gl::Quad::shader_program_
private

Definition at line 35 of file quad.h.

◆ texture_coords_

GLuint tango_gl::Quad::texture_coords_
private

Definition at line 37 of file quad.h.

◆ texture_handle

GLuint tango_gl::Quad::texture_handle
private

Definition at line 38 of file quad.h.

◆ texture_id_

GLuint tango_gl::Quad::texture_id_
private

Definition at line 41 of file quad.h.

◆ uniform_mvp_mat_

GLuint tango_gl::Quad::uniform_mvp_mat_
private

Definition at line 39 of file quad.h.

◆ vertex_buffer_

GLuint tango_gl::Quad::vertex_buffer_
private

Definition at line 34 of file quad.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00