23 #ifndef __SELECTBUTTON__ 24 #define __SELECTBUTTON__ 28 #include <Eigen/Dense> 79 color = Eigen::Vector4f (0.1, 0.1, 0.1, 1.0);
155 color = Eigen::Vector4f (1.0, 1.0, 1.0, 1.0);
157 color = Eigen::Vector4f (0.1, 0.1, 0.1, 1.0);
Eigen::Vector2i dimensions
Dimensions in pixels.
Definition: element.hpp:66
Eigen::Vector2i position
Position of top-left corner in pixels.
Definition: element.hpp:69
Base class for all GUI elements (buttons, sliders ...)
Definition: element.hpp:52
Definition: element.hpp:39
void getViewMatrix(GLdouble *matrix)
Return the modelview matrix as a GLdouble array.
Definition: camera.hpp:126
virtual void setModelMatrix(void)
Sets the element model matrix.
Definition: element.hpp:195
Tucano::Texture texture
Element texture.
Definition: element.hpp:75
void getProjectionMatrix(GLdouble *matrix)
Return the projection matrix as a GLdouble array.
Definition: camera.hpp:142
Definition: bufferobject.hpp:34
void bind(int texture_unit)
Binds the texture to a given unit. Note that if there is another texture already binded to this unit...
Definition: texture.hpp:285
A Shader object represents one GLSL program.
Definition: shader.hpp:45
bool visible
Flag to show/hide element.
Definition: element.hpp:98
virtual void callback(void)
Callback with no parameters.
Definition: element.hpp:319
Definition: element.hpp:40
int num_params
Number of parameters for the callback.
Definition: element.hpp:60
void unbind(void)
Disables the shader program.
Definition: shader.hpp:1184
Eigen::Affine3f model_matrix
Model Matrix for placing element.
Definition: element.hpp:63
bool has_alt_texture
Flag to define if element has alt texture.
Definition: element.hpp:84
Eigen::Vector4f color
Color.
Definition: element.hpp:90
virtual void unbindBuffers(void)
Unbinds all buffers.
Definition: mesh.hpp:702
virtual void setAltTexture(string file)
Loads the button texture file.
Definition: element.hpp:183
virtual void setTexture(string file)
Loads the button texture file.
Definition: element.hpp:173
Tucano::Texture texture_alt
Alternative texture (for example, on/off buttons)
Definition: element.hpp:78
int element_type
Type of element.
Definition: element.hpp:57
void bind(void)
Enables the shader program for usage.
Definition: shader.hpp:1176
virtual void renderElements(void)
Call the draw method for rendering triangles. This method requires that a index buffer has been creat...
Definition: mesh.hpp:726
virtual void bindBuffers(void)
Binds all buffers.
Definition: mesh.hpp:677
Defines an abstract camera with a projection and view matrices.
Definition: camera.hpp:37
void setAttributeLocation(Shader *shader)
Automatically sets the attribute locations for a given Shader.
Definition: mesh.hpp:541
Shapes::Quad quad
Quad to hold texture.
Definition: element.hpp:72
void unbind(void)
Unbinds this texture and frees the texture unit.
Definition: texture.hpp:367
void setUniform(GLint location, GLint a, GLint b, GLint c, GLint d)
Sets an uniform integer 4D vector (ivec4) given a location and the vector values. ...
Definition: shader.hpp:1258