src/graphics/init.c File Reference src/graphics/init.c graphics - initialization and graphic stack management #include "../../include/graphics.h"#include "../../include/parse.h"#include "../../include/util.h" Macros #define TEST   0 Functions int graphics_init (void *error_buffer) Initializes graphical stack. bool graphics_shutdown (const int id, void *error_buffer) Shutdowns a gl_area. void graphics_model_setup (const int stack_id) graphics_model_setup void graphics_init_buffers (const int stack_id) Initializes the buffer of a gl_area Calls according to the user preferences. bool graphics_init_shaders (const int stack_id) Initializes the shaders of a gl_area and link them to a program. Variables struct graphics_stack_t * graphics_stack = NULL phantom documentation used to test the functioning of doxygen size_t graphics_stack_size = 0 int * free_stack_slot = NULL size_t free_stack_slot_size = 0
Detailed Description graphics - initialization and graphic stack management This file is part of Gem-graph.
Function Documentation
graphics_init() graphics_initinit.c init.cgraphics_init int graphics_init (void * error_buffer) Initializes graphical stack. Initializes a gl_area. Parameters gl_area, ptr to the gl_area widget
Returns id if initialized
graphics_init_buffers() graphics_init_buffersinit.c init.cgraphics_init_buffers void graphics_init_buffers (const int stack_id) Initializes the buffer of a gl_area Calls according to the user preferences. Parameters gl_area, ptr to the gl_area widget
Returns void
graphics_init_shaders() graphics_init_shadersinit.c init.cgraphics_init_shaders bool graphics_init_shaders (const int stack_id) Initializes the shaders of a gl_area and link them to a program. Parameters gl_area, ptr to the gl_area widget
Returns true if initialized
graphics_model_setup() graphics_model_setupinit.c init.cgraphics_model_setup void graphics_model_setup (const int graphics_stack_id) graphics_model_setup Parameters graphics_stack_id
graphics_shutdown() graphics_shutdowninit.c init.cgraphics_shutdown bool graphics_shutdown (const int id, void * error_buffer) Shutdowns a gl_area. Parameters gl_area, ptr to the gl_area widget
Returns true if success
Variable Documentation
graphics_stack graphics_stackinit.c init.cgraphics_stack struct graphics_stack_t* graphics_stack = NULL phantom documentation used to test the functioning of doxygen Dynamic array of ptrs to dynamically allocated gl_area_entry.