gwydgets

gwydgets — Miscellaneous utility functions

Synopsis




void        gwy_widgets_type_init           (void);
gboolean    gwy_widgets_gl_init             (void);
GdkGLConfig* gwy_widgets_get_gl_config      (void);

Description

Gwyddion classes has to be initialized before they can be safely deserialized. The function gwy_type_init() performs this initialization.

Before 3D widgets (Gwy3DView) can be used, OpenGL must be initialized with gwy_widgets_gl_init().

Details

gwy_widgets_type_init ()

void        gwy_widgets_type_init           (void);

Initializes libgwywidgets data types, making their deserialization safe.

Eventually calls gwy_draw_type_init().


gwy_widgets_gl_init ()

gboolean    gwy_widgets_gl_init             (void);

Configures an OpenGL-capable visual for 3D widgets.

Use gwy_widgets_get_gl_config() to get the framebuffer configuration.

This function must be called before OpenGL widgets can be used.

Returns : TRUE if an appropriate visual was found.

gwy_widgets_get_gl_config ()

GdkGLConfig* gwy_widgets_get_gl_config      (void);

Returns OpenGL framebuffer configuration for 3D widgets.

Call gwy_widgets_gl_init() first.

Returns : The OpenGL framebuffer configuration.