2024-10-20 01:05:12 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
< meta name = "generator" content = "Doxygen 1.9.8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Gem-graph: src/graphics/init.c File Reference< / title >
< link href = "../../tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../jquery.js" > < / script >
< script type = "text/javascript" src = "../../dynsections.js" > < / script >
< link href = "../../search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../search/searchdata.js" > < / script >
< script type = "text/javascript" src = "../../search/search.js" > < / script >
< link href = "../../doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr id = "projectrow" >
< td id = "projectlogo" > < img alt = "Logo" src = "../../logo icon mini.png" / > < / td >
< td id = "projectalign" >
< div id = "projectname" > Gem-graph< span id = "projectnumber" >   0.1.0< / span >
< / div >
< div id = "projectbrief" > A modelling tool based on rewriting of geometric graphs.< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
< / script >
< script type = "text/javascript" src = "../../menudata.js" > < / script >
< script type = "text/javascript" src = "../../menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
< / script >
< div id = "main-nav" > < / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "../../dir_68267d1309a1af8e8297ef4c3efbcdba.html" > src< / a > < / li > < li class = "navelem" > < a class = "el" href = "../../dir_560415a5d2bc4999842279f4fc1debef.html" > graphics< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#define-members" > Macros< / a > |
< a href = "#func-members" > Functions< / a > |
< a href = "#var-members" > Variables< / a > < / div >
< div class = "headertitle" > < div class = "title" > init.c File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > graphics - initialization and graphic stack management
< a href = "#details" > More...< / a > < / p >
< div class = "textblock" > < code > #include " < a class = "el" href = "../../d7/d04/graphics_8h.html" > ../../include/graphics.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "../../d4/d0b/parse_8h.html" > ../../include/parse.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "../../d8/d0c/util_8h.html" > ../../include/util.h< / a > " < / code > < br / >
< / div > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "define-members" name = "define-members" > < / a >
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:ab946e2e7f7679350627acfded8e2658b" id = "r_ab946e2e7f7679350627acfded8e2658b" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ab946e2e7f7679350627acfded8e2658b" name = "ab946e2e7f7679350627acfded8e2658b" > < / a >
#define  < / td > < td class = "memItemRight" valign = "bottom" > < b > TEST< / b >       0< / td > < / tr >
2024-10-20 23:03:17 +02:00
< tr class = "memdesc:ab946e2e7f7679350627acfded8e2658b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > phantom documentation < br / > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< tr class = "separator:ab946e2e7f7679350627acfded8e2658b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a5a4ed7438a755777b162fc37e84ba93a" id = "r_a5a4ed7438a755777b162fc37e84ba93a" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d00/init_8c.html#a5a4ed7438a755777b162fc37e84ba93a" > graphics_init< / a > (void *error_buffer)< / td > < / tr >
2024-10-20 23:03:17 +02:00
< tr class = "memdesc:a5a4ed7438a755777b162fc37e84ba93a" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Initializes a gl_area. < br / > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< tr class = "separator:a5a4ed7438a755777b162fc37e84ba93a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa4d80f7ee104aa414e7ed4b90e0eac88" id = "r_aa4d80f7ee104aa414e7ed4b90e0eac88" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d00/init_8c.html#aa4d80f7ee104aa414e7ed4b90e0eac88" > graphics_shutdown< / a > (const int id, void *error_buffer)< / td > < / tr >
< tr class = "memdesc:aa4d80f7ee104aa414e7ed4b90e0eac88" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Shutdowns a gl_area. < br / > < / td > < / tr >
< tr class = "separator:aa4d80f7ee104aa414e7ed4b90e0eac88" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6b097df849779455e6f57d84a7037919" id = "r_a6b097df849779455e6f57d84a7037919" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d00/init_8c.html#a6b097df849779455e6f57d84a7037919" > graphics_model_setup< / a > (const int stack_id)< / td > < / tr >
< tr class = "memdesc:a6b097df849779455e6f57d84a7037919" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > graphics_model_setup < br / > < / td > < / tr >
< tr class = "separator:a6b097df849779455e6f57d84a7037919" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a17560cb73e3b25c1e6fbeae088867d0f" id = "r_a17560cb73e3b25c1e6fbeae088867d0f" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d00/init_8c.html#a17560cb73e3b25c1e6fbeae088867d0f" > graphics_init_buffers< / a > (const int stack_id)< / td > < / tr >
< tr class = "memdesc:a17560cb73e3b25c1e6fbeae088867d0f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Initializes the buffer of a gl_area Calls according to the user preferences. < br / > < / td > < / tr >
< tr class = "separator:a17560cb73e3b25c1e6fbeae088867d0f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4ae8809ed73e91b6a20bcfdd94f4c23d" id = "r_a4ae8809ed73e91b6a20bcfdd94f4c23d" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d00/init_8c.html#a4ae8809ed73e91b6a20bcfdd94f4c23d" > graphics_init_shaders< / a > (const int stack_id)< / td > < / tr >
< tr class = "memdesc:a4ae8809ed73e91b6a20bcfdd94f4c23d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Initializes the shaders of a gl_area and link them to a program. < br / > < / td > < / tr >
< tr class = "separator:a4ae8809ed73e91b6a20bcfdd94f4c23d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "var-members" name = "var-members" > < / a >
Variables< / h2 > < / td > < / tr >
< tr class = "memitem:ad2cd7fe4849c259e9dedcc6e7e795aaf" id = "r_ad2cd7fe4849c259e9dedcc6e7e795aaf" > < td class = "memItemLeft" align = "right" valign = "top" > struct < a class = "el" href = "../../dd/d0e/structgraphics__stack__t.html" > graphics_stack_t< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d00/init_8c.html#ad2cd7fe4849c259e9dedcc6e7e795aaf" > graphics_stack< / a > = NULL< / td > < / tr >
2024-10-20 23:03:17 +02:00
< tr class = "memdesc:ad2cd7fe4849c259e9dedcc6e7e795aaf" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > phantom documentation < br / > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< tr class = "separator:ad2cd7fe4849c259e9dedcc6e7e795aaf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a86ecb95bf1c1a30d42b02f6811b83e4c" id = "r_a86ecb95bf1c1a30d42b02f6811b83e4c" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a86ecb95bf1c1a30d42b02f6811b83e4c" name = "a86ecb95bf1c1a30d42b02f6811b83e4c" > < / a >
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > graphics_stack_size< / b > = 0< / td > < / tr >
2024-10-20 23:03:17 +02:00
< tr class = "memdesc:a86ecb95bf1c1a30d42b02f6811b83e4c" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > phantom documentation < br / > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< tr class = "separator:a86ecb95bf1c1a30d42b02f6811b83e4c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7e77f440f52c90c921a5bdc003c3b03b" id = "r_a7e77f440f52c90c921a5bdc003c3b03b" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a7e77f440f52c90c921a5bdc003c3b03b" name = "a7e77f440f52c90c921a5bdc003c3b03b" > < / a >
int *  < / td > < td class = "memItemRight" valign = "bottom" > < b > free_stack_slot< / b > = NULL< / td > < / tr >
2024-10-20 23:03:17 +02:00
< tr class = "memdesc:a7e77f440f52c90c921a5bdc003c3b03b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > phantom documentation < br / > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< tr class = "separator:a7e77f440f52c90c921a5bdc003c3b03b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a29d09eb6569a8bfc0439eac245102077" id = "r_a29d09eb6569a8bfc0439eac245102077" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a29d09eb6569a8bfc0439eac245102077" name = "a29d09eb6569a8bfc0439eac245102077" > < / a >
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > free_stack_slot_size< / b > = 0< / td > < / tr >
2024-10-20 23:03:17 +02:00
< tr class = "memdesc:a29d09eb6569a8bfc0439eac245102077" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > phantom documentation < br / > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< tr class = "separator:a29d09eb6569a8bfc0439eac245102077" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > graphics - initialization and graphic stack management < / p >
< p > This file is part of Gem-graph. < / p >
< / div > < h2 class = "groupheader" > Function Documentation< / h2 >
< a id = "a5a4ed7438a755777b162fc37e84ba93a" name = "a5a4ed7438a755777b162fc37e84ba93a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a5a4ed7438a755777b162fc37e84ba93a" > ◆   < / a > < / span > graphics_init()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int graphics_init < / td >
< td > (< / td >
< td class = "paramtype" > void *  < / td >
< td class = "paramname" > < em > error_buffer< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-10-20 23:03:17 +02:00
< p > Initializes a gl_area. < / p >
2024-10-20 01:05:12 +02:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-10-20 23:03:17 +02:00
< tr > < td class = "paramname" > *error_buffer< / td > < td > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< / table >
< / dd >
< / dl >
2024-10-20 23:03:17 +02:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true if initialized < / dd > < / dl >
2024-10-20 01:05:12 +02:00
< / div >
< / div >
< a id = "a17560cb73e3b25c1e6fbeae088867d0f" name = "a17560cb73e3b25c1e6fbeae088867d0f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a17560cb73e3b25c1e6fbeae088867d0f" > ◆   < / a > < / span > graphics_init_buffers()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void graphics_init_buffers < / td >
< td > (< / td >
< td class = "paramtype" > const int  < / td >
< td class = "paramname" > < em > stack_id< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Initializes the buffer of a gl_area Calls according to the user preferences. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-10-20 23:03:17 +02:00
< tr > < td class = "paramname" > stack_id< / td > < td > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< / table >
< / dd >
< / dl >
2024-10-20 23:03:17 +02:00
< p > gl_area, ptr to the gl_area widget < / p >
2024-10-20 01:05:12 +02:00
< / div >
< / div >
< a id = "a4ae8809ed73e91b6a20bcfdd94f4c23d" name = "a4ae8809ed73e91b6a20bcfdd94f4c23d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4ae8809ed73e91b6a20bcfdd94f4c23d" > ◆   < / a > < / span > graphics_init_shaders()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool graphics_init_shaders < / td >
< td > (< / td >
< td class = "paramtype" > const int  < / td >
< td class = "paramname" > < em > stack_id< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Initializes the shaders of a gl_area and link them to a program. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-10-20 23:03:17 +02:00
< tr > < td class = "paramname" > stack_id< / td > < td > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< / table >
< / dd >
< / dl >
2024-10-20 23:03:17 +02:00
< p > gl_area, ptr to the gl_area widget< / p >
2024-10-20 01:05:12 +02:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true if initialized < / dd > < / dl >
< / div >
< / div >
< a id = "a6b097df849779455e6f57d84a7037919" name = "a6b097df849779455e6f57d84a7037919" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6b097df849779455e6f57d84a7037919" > ◆   < / a > < / span > graphics_model_setup()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void graphics_model_setup < / td >
< td > (< / td >
< td class = "paramtype" > const int  < / td >
< td class = "paramname" > < em > graphics_stack_id< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > graphics_model_setup < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > graphics_stack_id< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "aa4d80f7ee104aa414e7ed4b90e0eac88" name = "aa4d80f7ee104aa414e7ed4b90e0eac88" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa4d80f7ee104aa414e7ed4b90e0eac88" > ◆   < / a > < / span > graphics_shutdown()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool graphics_shutdown < / td >
< td > (< / td >
< td class = "paramtype" > const int  < / td >
< td class = "paramname" > < em > id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *  < / td >
< td class = "paramname" > < em > error_buffer< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Shutdowns a gl_area. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-10-20 23:03:17 +02:00
< tr > < td class = "paramname" > id< / td > < td > < / td > < / tr >
< tr > < td class = "paramname" > *error_buffer< / td > < td > < / td > < / tr >
2024-10-20 01:05:12 +02:00
< / table >
< / dd >
< / dl >
2024-10-20 23:03:17 +02:00
< p > gl_area, ptr to the gl_area widget< / p >
2024-10-20 01:05:12 +02:00
< dl class = "section return" > < dt > Returns< / dt > < dd > true if success < / dd > < / dl >
< / div >
< / div >
< h2 class = "groupheader" > Variable Documentation< / h2 >
< a id = "ad2cd7fe4849c259e9dedcc6e7e795aaf" name = "ad2cd7fe4849c259e9dedcc6e7e795aaf" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad2cd7fe4849c259e9dedcc6e7e795aaf" > ◆   < / a > < / span > graphics_stack< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > struct < a class = "el" href = "../../dd/d0e/structgraphics__stack__t.html" > graphics_stack_t< / a > * graphics_stack = NULL< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-10-20 23:03:17 +02:00
< p > phantom documentation < / p >
2024-10-20 01:05:12 +02:00
< p > Dynamic array of ptrs to dynamically allocated gl_area_entry. < / p >
< / div >
< / div >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "../../doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.8
< / small > < / address >
< / body >
< / html >