|
Katana Plug-in APIs 0.1
|
An object that can be drawn on the Viewport. More...
#include <FnDrawable.h>
Public Types | |
| enum | BUFFER |
Buffer types. | |
Public Member Functions | |
| Drawable () | |
| Constructor. | |
| ~Drawable () | |
| Destructor. | |
| bool | isReady () |
| Tells if the Drawable is ready to be drawn (if setup has been called). | |
| void | setup (const std::vector< Vec3f > &vertices, const std::vector< Vec3f > &normals, const std::vector< unsigned int > &indices, const std::vector< Vec2f > &uvs=std::vector< Vec2f >()) |
| Sets up the vertex buffers. | |
| void | updateVertices (const std::vector< Vec3f > &vertices) |
| Update mesh vertices positions. | |
| void | updateVertices (const Vec3f *const vertices, const std::size_t numberOfVertices) |
| Update mesh vertices positions. | |
| void | setLineWidth (unsigned int width) |
| Sets the width of the lines to be drawn. | |
| void | setPointWidth (unsigned int size) |
| Sets the width of the points to be drawn. | |
| void | draw (bool withTransparency=true, bool cull=true) |
| Draws as a mesh. | |
| void | drawLines (bool withTransparency=true) |
| Draws as lines. | |
| void | drawPoints (bool withTransparency=true) |
| Draws as a points. | |
An object that can be drawn on the Viewport.
This can be used to draw Manipulator handle elements, such as lines, points or meshes. It maintains a VAO and VBOs internally.
1.7.3