src/util/draw/gl.c File Referencesrc/util/draw/gl.cgeneral drawing functions #include "../../../include/graphics.h"#include "../../../include/signal.h"Classes struct stack_index_tphantom documentation Macros #define GL_AREA_SIZE 400phantom documentation Functions int util_gl_set_arrow (int stack_id, int arrows_nb, int space_X, int space_Y, int space_Z, int requested_weight, int site, int arrow_x, int arrow_y, int arrow_z)phantom documentation long util_gl_get_stack (void *container_widget)Look for stack entry and returns stack_id. long util_gl_is_ready (void *container_widget)Look for stack entry and returns stack_id. bool util_gl_init_stack (void *container_widget, GError *error_buffer)Look for stack entry and initializes OpenGL for it. bool util_gl_shutdown_stack (void *container_widget, GError *error_buffer)Look for stack entry and shutdowns OpenGL for it. void util_gl_clean_stack_index (void)phantom documentation bool util_gl_render_stack (GtkWidget *container_widget)Look for stack entry and triggers OpenGL for drawing. bool util_gl_update_axis (GtkWidget *container_widget, int axis, int value)Look for stack entry and triggers OpenGL for drawing. void util_gl_shutdown_all_stacks (void)Look for every stack entry and shutdowns OpenGL for it. GtkWidget * create_axis_slider (int axis)Creates a slider widget. bool util_gl_setup_glarea (int target_mode, GtkWidget *target_widget)phantom documentation Variables size_t stack_index_size = 0phantom documentation Detailed Descriptiongeneral drawing functions This file is part of Gem-graph.Function Documentationcreate_axis_slider()create_axis_slidergl.cgl.ccreate_axis_sliderGtkWidget * create_axis_slider (int axis)Creates a slider widget.
Parameters
axismeaning which axis we're building (for label)
ReturnsGtkWidget* pointer to the new widget util_gl_get_stack()util_gl_get_stackgl.cgl.cutil_gl_get_stacklong util_gl_get_stack (void * container_widget)Look for stack entry and returns stack_id.
Parameters
*container_widget
Returnsstack_id util_gl_init_stack()util_gl_init_stackgl.cgl.cutil_gl_init_stackbool util_gl_init_stack (void * container_widget, GError * error_buffer)Look for stack entry and initializes OpenGL for it.
Parameters
*container_widget*error_buffer
Returnssuccess util_gl_is_ready()util_gl_is_readygl.cgl.cutil_gl_is_readylong util_gl_is_ready (void * container_widget)Look for stack entry and returns stack_id.
Parameters
*container_widgetgenerally the GtkBox that contains the GLArea
Returnsstack_id util_gl_render_stack()util_gl_render_stackgl.cgl.cutil_gl_render_stackbool util_gl_render_stack (GtkWidget * container_widget)Look for stack entry and triggers OpenGL for drawing.
Parameters
container_widgetgenerally the GtkBox that contains the GLArea
Returnsbool: true if success util_gl_set_arrow()util_gl_set_arrowgl.cgl.cutil_gl_set_arrowint util_gl_set_arrow (int stack_id, int arrows_nb, int space_X, int space_Y, int space_Z, int requested_weight, int site, int arrow_x, int arrow_y, int arrow_z)phantom documentation
Parameters
returns int util_gl_shutdown_all_stacks()util_gl_shutdown_all_stacksgl.cgl.cutil_gl_shutdown_all_stacksvoid util_gl_shutdown_all_stacks (void )Look for every stack entry and shutdowns OpenGL for it. DO NOT DOCUMENT param void < argument 'void' of command @ param is not foundDO NOT DOCUMENT returns bool true if success < does not return anything util_gl_shutdown_stack()util_gl_shutdown_stackgl.cgl.cutil_gl_shutdown_stackbool util_gl_shutdown_stack (void * container_widget, GError * error_buffer)Look for stack entry and shutdowns OpenGL for it.
Parameters
*container_widget*error_buffer
Returnssuccess util_gl_update_axis()util_gl_update_axisgl.cgl.cutil_gl_update_axisbool util_gl_update_axis (GtkWidget * container_widget, int axis, int value)Look for stack entry and triggers OpenGL for drawing.
Parameters