src/graphics/init.c File Referencesrc/graphics/init.cinitialization and graphic stack management #include "../../include/graphics.h"#include "../../include/parse.h"#include "../../include/util.h"Include dependency graph for init.c:Macros #define TEST 0phantom documentation Functions int graphics_init (void *error_buffer)Initializes a gl_area. bool graphics_shutdown (const int id, void *error_buffer)Shutdowns a gl_area. void graphics_model_setup (const int graphics_stack_id)graphics_model_setup void graphics_init_buffers (const int graphics_stack_id)Initializes the buffer of a gl_area Calls according to the user preferences. bool graphics_init_shaders (const int graphics_stack_id)Initializes the shaders of a gl_area and link them to a program. Variables struct graphics_stack_t * graphics_stack = NULLphantom documentation size_t graphics_stack_size = 0phantom documentation int * free_stack_slot = NULLphantom documentation size_t free_stack_slot_size = 0phantom documentation Detailed Descriptioninitialization and graphic stack management This file is part of Gem-graph. Function Documentationgraphics_init()graphics_initinit.cinit.cgraphics_initint graphics_init (void * error_buffer)Initializes a gl_area. param *error_buffer < DO NOT DOCUMENT (it's 'void')Returnstrue if initialized
Here is the call graph for this function:
Here is the caller graph for this function:graphics_init_buffers()graphics_init_buffersinit.cinit.cgraphics_init_buffersvoid graphics_init_buffers (const int graphics_stack_id)Initializes the buffer of a gl_area Calls according to the user preferences.
Parameters
graphics_stack_id
gl_area, ptr to the gl_area widget
Here is the call graph for this function:
Here is the caller graph for this function:graphics_init_shaders()graphics_init_shadersinit.cinit.cgraphics_init_shadersbool graphics_init_shaders (const int graphics_stack_id)Initializes the shaders of a gl_area and link them to a program.
Parameters
graphics_stack_id
Returnsinitialized
Here is the call graph for this function:
Here is the caller graph for this function:graphics_model_setup()graphics_model_setupinit.cinit.cgraphics_model_setupvoid graphics_model_setup (const int graphics_stack_id)graphics_model_setup
Parameters
graphics_stack_id
Here is the call graph for this function:
Here is the caller graph for this function:graphics_shutdown()graphics_shutdowninit.cinit.cgraphics_shutdownbool graphics_shutdown (const int id, void * error_buffer)Shutdowns a gl_area.
Parameters
id*error_buffer
Returnssuccess
Here is the caller graph for this function:Variable Documentationgraphics_stackgraphics_stackinit.cinit.cgraphics_stackstruct graphics_stack_t* graphics_stack = NULLphantom documentation Dynamic array of ptrs to dynamically allocated gl_area_entry.