context

context —

Synopsis




G3DContext* g3d_context_new                 (void);
void        g3d_context_free                (G3DContext *context);
gboolean    g3d_context_set_bgcolor         (G3DContext *context,
                                             gfloat r,
                                             gfloat g,
                                             gfloat b,
                                             gfloat a);
gboolean    g3d_context_update_interface    (G3DContext *context);
gboolean    g3d_context_update_progress_bar (G3DContext *context,
                                             gfloat percentage,
                                             gboolean visibility);
void        g3d_context_set_set_bgcolor_func
                                            (G3DContext *context,
                                             G3DSetBgColorFunc func,
                                             gpointer user_data);

Description

Details

g3d_context_new ()

G3DContext* g3d_context_new                 (void);

Create a new context. This initializes the library (and also the plugin system so this has not to be done seperately).

Returns : a valid context, or NULL on failure.

g3d_context_free ()

void        g3d_context_free                (G3DContext *context);

Cleans up the context and the plugin system and frees all reserved memory.

context :

g3d_context_set_bgcolor ()

gboolean    g3d_context_set_bgcolor         (G3DContext *context,
                                             gfloat r,
                                             gfloat g,
                                             gfloat b,
                                             gfloat a);

Try to set the background color. This will call a function registered with g3d_context_set_set_bgcolor_func.

context : a valid context
r : red component (range: 0.0 .. 1.0)
g : green component (range: 0.0 .. 1.0)
b : green component (range: 0.0 .. 1.0)
a :
Returns : TRUE on success, FALSE else

g3d_context_update_interface ()

gboolean    g3d_context_update_interface    (G3DContext *context);

Try to update the interface. This will call a function registered with g3d_context_set_update_interface_func.

context : a valid context.
Returns : TRUE on success, FALSE else

g3d_context_update_progress_bar ()

gboolean    g3d_context_update_progress_bar (G3DContext *context,
                                             gfloat percentage,
                                             gboolean visibility);

context :
percentage :
visibility :
Returns :

g3d_context_set_set_bgcolor_func ()

void        g3d_context_set_set_bgcolor_func
                                            (G3DContext *context,
                                             G3DSetBgColorFunc func,
                                             gpointer user_data);

context :
func :
user_data :