| Gtk OpenGL Toolkit (gtkogltk) Reference Manual |
|---|
#include <ogltk/box.h> struct glo_box; GLobject* glo_box_new (gfloat length, gfloat height, gfloat width); gboolean glo_box_set_length (glo_box *box, gfloat length); gfloat glo_box_get_length (glo_box *box); gboolean glo_box_set_height (glo_box *box, gfloat height); gfloat glo_box_get_height (glo_box *box); gboolean glo_box_set_width (glo_box *box, gfloat width); gfloat glo_box_get_width (glo_box *box);
struct glo_box {
GLobject parent_instance;
gfloat length;
gfloat height;
gfloat width;
};GLobject* glo_box_new (gfloat length,
gfloat height,
gfloat width);Create an instance of GLobject of type Box.
| length : | Set the length of the box. |
| height : | Set the height of the box. |
| width : | Set the width of the box. |
| Returns : | A new instance of box as type GLobject. |
gboolean glo_box_set_length (glo_box *box, gfloat length);
Change the size length of the box object.
| box : | ogltk Box GLobject |
| length : | Set the length of box. |
| Returns : | TRUE if the length was set. |
gfloat glo_box_get_length (glo_box *box);
Get length size of the box object.
| box : | ogltk Box GLobject |
| Returns : | Length of the box as type float. |
gboolean glo_box_set_height (glo_box *box, gfloat height);
Change the size height of the box object.
| box : | ogltk Box GLobject |
| height : | Set the height of the box. |
| Returns : | TRUE if the height was set. |
gfloat glo_box_get_height (glo_box *box);
Get height size of the box object.
| box : | ogltk Box GLobject |
| Returns : | Height of the box as type float. |
gboolean glo_box_set_width (glo_box *box, gfloat width);
Change the size width of the box object.
| box : | ogltk Box GLobject |
| width : | Set the width of the box. |
| Returns : | TRUE if the width was set. |
| <<< GLobject Reference | glo-cube >>> |