glo-box

Name

glo-box -- A 3D GLobject box type.

Synopsis


#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);

Description

Details

struct glo_box

struct glo_box {

    GLobject                parent_instance;
    gfloat                  length;
    gfloat                  height;
    gfloat                  width;
};


glo_box_new ()

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.


glo_box_set_length ()

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.


glo_box_get_length ()

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.


glo_box_set_height ()

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.


glo_box_get_height ()

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.


glo_box_set_width ()

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.


glo_box_get_width ()

gfloat      glo_box_get_width               (glo_box *box);

Get width size of the box object.

box :

ogltk Box GLobject

Returns :

Width of the box as type float.