glo-triangle

Name

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

Synopsis


#include <ogltk/glo_triangle.h>


#define     GLO_TRIANGLE_H
struct      glo_triangle;
struct      glo_triangle_class;
GLobject*   glo_triangle_new                (gfloat size);
gboolean    glo_triangle_set_size           (glo_triangle *triangle,
                                             gfloat size);

Description

Details

GLO_TRIANGLE_H

#define GLO_TRIANGLE_H


struct glo_triangle

struct glo_triangle {

    GLobject             parent_instance;
    
    gfloat               base;                                           
};


struct glo_triangle_class

struct glo_triangle_class {

  GLobject_class        parent_class;
};


glo_triangle_new ()

GLobject*   glo_triangle_new                (gfloat size);

Create an instance of a 3D triangle object.

size :

size of object.

Returns :

Instance of a 3D triangle as type GLobject.


glo_triangle_set_size ()

gboolean    glo_triangle_set_size           (glo_triangle *triangle,
                                             gfloat size);

Set the size (cubed) of the triangle..

triangle :

An ogltk triangle object

size :

Size of the triangle.

Returns :

True if value is set.