2024-10-19 16:05:49 +02:00
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns= "http://docbook.org/ns/docbook" version= "5.0" xmlns:xlink= "http://www.w3.org/1999/xlink" xml:id= "_graphics_8h" xml:lang= "en-US" >
<title > include/graphics.h File Reference</title>
<indexterm > <primary > include/graphics.h</primary> </indexterm>
<para >
<para > graphics header </para>
</para>
<programlisting linenumbering= "unnumbered" > #include " base.h" <?linebreak?> #include < epoxy/gl.h> <?linebreak?> #include < GL/glu.h> <?linebreak?> </programlisting> <simplesect >
<title > Classes </title>
<itemizedlist >
<listitem > <para > struct <link linkend= "_structgraphics__stack__t" > graphics_stack_t</link> </para>
<para > Structure describing a gl_area and its parameters, used to create a table of Gem-graph client current gl_areas. </para>
</listitem>
</itemizedlist>
</simplesect>
<simplesect >
<title > Macros </title>
<itemizedlist >
<listitem > <para > <anchor xml:id= "_graphics_8h_1a80757f1a53908b5582a9ba77c133c079" /> #define <emphasis role= "strong" > VERTEX_SHADER_FILE</emphasis>       " src/shader.vert" </para>
2024-10-20 01:05:12 +02:00
<para > phantom documentation </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > <anchor xml:id= "_graphics_8h_1ad1be094b2f34d6c013cc36d0c0e9a2bb" /> #define <emphasis role= "strong" > FRAG_SHADER_FILE</emphasis>       " src/shader.frag" </para>
2024-10-20 01:05:12 +02:00
<para > phantom documentation </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > <anchor xml:id= "_graphics_8h_1a60413e8e518bdcc170ed34d8cfb6b018" /> #define <emphasis role= "strong" > GL_TARGET_MAJOR_VERSION</emphasis>       0</para>
2024-10-20 01:05:12 +02:00
<para > phantom documentation </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > <anchor xml:id= "_graphics_8h_1aacde4e0c52ad0f34009b753d288e385c" /> #define <emphasis role= "strong" > GL_TARGET_MINOR_VERSION</emphasis>       4</para>
2024-10-20 01:05:12 +02:00
<para > phantom documentation </para>
2024-10-19 16:05:49 +02:00
</listitem>
</itemizedlist>
</simplesect>
<simplesect >
<title > Functions </title>
<itemizedlist >
<listitem > <para > int <link linkend= "_graphics_8h_1a5a4ed7438a755777b162fc37e84ba93a" > graphics_init</link> (void *error_buffer)</para>
<para > Initializes a gl_area. </para>
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1a66c9c80dbf46ac2168827bf8a0dfb7ee" > graphics_draw</link> (const int graphics_stack_id)</para>
<para > Draws the current buffer to a gl_area. </para>
</listitem>
2024-10-22 23:58:04 +02:00
<listitem > <para > bool <link linkend= "_graphics_8h_1aa4d80f7ee104aa414e7ed4b90e0eac88" > graphics_shutdown</link> (const int id, void *error_buffer)</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > Shutdowns a gl_area. </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > bool <link linkend= "_graphics_8h_1ac5ba153022c8589d2cd83442197e163e" > graphics_init_shaders</link> (const int graphics_stack_id)</para>
<para > Initializes the shaders of a gl_area and link them to a program. </para>
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1aa86924f99e2a17fcb4e33b22b8987a95" > graphics_init_buffers</link> (const int graphics_stack_id)</para>
<para > Initializes the buffer of a gl_area Calls according to the user preferences. </para>
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1aa2c4ec98f5bf9942092ff385e9fac72f" > graphics_draw_vertex</link> (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z)</para>
2024-10-22 23:58:04 +02:00
<para > Writes values to describe a vertex at (x,y,z) intoq the vertex buffer. </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1aad0766ae2eda7ded12984d0061f1da89" > graphics_draw_line</link> (const int graphics_stack_id, GLuint a, GLuint b)</para>
2024-10-20 01:05:12 +02:00
<para > Writes values to describe a line from a to b into the line buffer. </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1afb83b572ba51cecca0db17db6d046546" > graphics_draw_plan</link> (const int graphics_stack_id, GLuint a, GLuint b, GLuint c)</para>
<para > Writes values to describe an (a,b,c) plan (triangle) into the plan buffer. </para>
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1a2be40f60f1a100f87730178ea20a5b6f" > graphics_draw_color</link> (const int graphics_stack_id, GLfloat r, GLfloat g, GLfloat b)</para>
<para > Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console. </para>
</listitem>
<listitem > <para > void <link linkend= "_graphics_8h_1a76f5c593f1d55ebbc838437d9240ad8a" > graphics_model_setup</link> (const int graphics_stack_id)</para>
2024-10-20 01:05:12 +02:00
<para > graphics_model_setup </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-20 01:05:12 +02:00
<listitem > <para > int <link linkend= "_graphics_8h_1a9f1525659a25e5f22f6f864f77df0394" > graphics_draw_one_arrow_vertex</link> (const int graphics_stack_id, int space_X, int space_Y, int space_Z, int weight, int site, int x, int y, int z)</para>
<para > Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console. </para>
2024-10-19 16:05:49 +02:00
</listitem>
2024-10-20 01:05:12 +02:00
<listitem > <para > int <link linkend= "_graphics_8h_1ac5b64ca813b8230a386db3f197773839" > graphics_draw_one_arrow_line</link> (const int graphics_stack_id, int offset_vertex)</para>
<para > Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console. </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > int <link linkend= "_graphics_8h_1a79778df22a59f6bdfb2ef1be40999988" > graphics_draw_space_ridges_vertex</link> (const int graphics_stack_id, long offset_vertex, long x, long y, long z)</para>
<para > Writes grid ridges to vertex and color buffers. </para>
</listitem>
2024-10-22 23:58:04 +02:00
<listitem > <para > <anchor xml:id= "_graphics_8h_1ae06bc782cdd144a15166e1a3087ca07c" /> int <emphasis role= "strong" > graphics_draw_space_ridges_lines</emphasis> (const int graphics_stack_id)</para>
2024-10-19 16:05:49 +02:00
2024-10-22 23:58:04 +02:00
<para > phantom documentation used to test the functioning of doxygen </para>
2024-10-19 16:05:49 +02:00
</listitem>
<listitem > <para > long <link linkend= "_graphics_8h_1aa0e0b868182a402d520d3443909bd40b" > graphics_draw_grids_on_space_faces_vertex</link> (const int graphics_stack_id, long x, long y, long z)</para>
<para > Writes grid lines on space faces. </para>
</listitem>
2024-10-20 01:05:12 +02:00
<listitem > <para > long <link linkend= "_graphics_8h_1a4b522c9dc5b1ba15444956adb1c08cf5" > graphics_draw_grids_on_space_faces_lines</link> (const int graphics_stack_id, long offset_vertex, long x, long y, long z)</para>
2024-10-23 00:06:21 +02:00
</listitem>
<listitem > <para > int <link linkend= "_graphics_8h_1a6a8069bea50642d8e4d582194cf7c014" > graphics_set_arrow</link> (int graphics_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)</para>
<para > phantom documentation </para>
2024-10-19 16:05:49 +02:00
</listitem>
</itemizedlist>
</simplesect>
<simplesect >
<title > Variables </title>
<itemizedlist >
<listitem > <para > struct <link linkend= "_structgraphics__stack__t" > graphics_stack_t</link> * <link linkend= "_graphics_8h_1ad2cd7fe4849c259e9dedcc6e7e795aaf" > graphics_stack</link> </para>
<para > Dynamic array of ptrs to dynamically allocated gl_area_entry. </para>
</listitem>
</itemizedlist>
</simplesect>
<section >
<title > Detailed Description</title>
<para > graphics header </para>
<para > This file is part of Gem-graph. </para>
</section>
<section >
<title > Function Documentation</title>
<anchor xml:id= "_graphics_8h_1a66c9c80dbf46ac2168827bf8a0dfb7ee" /> <section >
<title > graphics_draw()</title>
<indexterm > <primary > graphics_draw</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > void graphics_draw (const int graphics_stack_id)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
<para > Draws the current buffer to a gl_area. </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-22 23:58:04 +02:00
<entry > graphics_stack_id</entry> <entry >
2024-10-20 01:05:12 +02:00
<para > gl_area, ptr to the gl_area widget </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
<anchor xml:id= "_graphics_8h_1a2be40f60f1a100f87730178ea20a5b6f" /> <section >
<title > graphics_draw_color()</title>
<indexterm > <primary > graphics_draw_color</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_color</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > void graphics_draw_color (const int graphics_stack_id, GLfloat r, GLfloat g, GLfloat b)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
<para > Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console. </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > r</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > g</entry> <entry >
<para > </para>
2024-10-20 23:03:17 +02:00
</entry>
</row>
<row >
<entry > b</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
</section>
<anchor xml:id= "_graphics_8h_1a4b522c9dc5b1ba15444956adb1c08cf5" /> <section >
<title > graphics_draw_grids_on_space_faces_lines()</title>
<indexterm > <primary > graphics_draw_grids_on_space_faces_lines</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_grids_on_space_faces_lines</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > long graphics_draw_grids_on_space_faces_lines (const int graphics_stack_id, long offset_vertex, long x, long y, long z)</computeroutput> </para>
2024-10-20 01:05:12 +02:00
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > offset_vertex</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > x</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > y</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > z</entry> <entry > </entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-19 16:05:49 +02:00
<formalpara > <title > Returns</title>
2024-10-20 01:05:12 +02:00
<para > l </para>
2024-10-19 16:05:49 +02:00
</formalpara>
</para>
</section>
<anchor xml:id= "_graphics_8h_1aa0e0b868182a402d520d3443909bd40b" /> <section >
<title > graphics_draw_grids_on_space_faces_vertex()</title>
<indexterm > <primary > graphics_draw_grids_on_space_faces_vertex</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_grids_on_space_faces_vertex</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > long graphics_draw_grids_on_space_faces_vertex (const int graphics_stack_id, long x, long y, long z)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
<para > Writes grid lines on space faces. </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > x</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > y</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
2024-10-20 01:05:12 +02:00
<row >
<entry > z</entry> <entry > </entry>
</row>
2024-10-19 16:05:49 +02:00
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara > <title > Returns</title>
2024-10-22 23:58:04 +02:00
<para > l </para>
2024-10-19 16:05:49 +02:00
</formalpara>
2024-10-22 23:58:04 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
<anchor xml:id= "_graphics_8h_1aad0766ae2eda7ded12984d0061f1da89" /> <section >
<title > graphics_draw_line()</title>
<indexterm > <primary > graphics_draw_line</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_line</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > void graphics_draw_line (const int graphics_stack_id, GLuint a, GLuint b)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > Writes values to describe a line from a to b into the line buffer. </para>
2024-10-19 16:05:49 +02:00
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > a</entry> <entry >
<para > </para>
2024-10-20 23:03:17 +02:00
</entry>
</row>
<row >
<entry > b</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
</section>
<anchor xml:id= "_graphics_8h_1ac5b64ca813b8230a386db3f197773839" /> <section >
<title > graphics_draw_one_arrow_line()</title>
<indexterm > <primary > graphics_draw_one_arrow_line</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_one_arrow_line</secondary> </indexterm>
<para > <computeroutput > int graphics_draw_one_arrow_line (const int graphics_stack_id, int offset_vertex)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console. </para>
</para>
2024-10-19 16:05:49 +02:00
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
2024-10-20 01:05:12 +02:00
<row >
<entry > offset_vertex</entry> <entry > </entry>
</row>
2024-10-19 16:05:49 +02:00
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara > <title > Returns</title>
2024-10-20 01:05:12 +02:00
<para > i </para>
2024-10-19 16:05:49 +02:00
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
</section>
<anchor xml:id= "_graphics_8h_1a9f1525659a25e5f22f6f864f77df0394" /> <section >
<title > graphics_draw_one_arrow_vertex()</title>
<indexterm > <primary > graphics_draw_one_arrow_vertex</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_one_arrow_vertex</secondary> </indexterm>
<para > <computeroutput > int graphics_draw_one_arrow_vertex (const int graphics_stack_id, int space_X, int space_Y, int space_Z, int weight, int site, int x, int y, int z)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console. </para>
</para>
<para >
2024-10-19 16:05:49 +02:00
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > space_X</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > space_Y</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > space_Z</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > weight</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > site</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
2024-10-20 01:05:12 +02:00
<row >
<entry > x</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > y</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > z</entry> <entry > </entry>
</row>
2024-10-19 16:05:49 +02:00
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara > <title > Returns</title>
2024-10-20 01:05:12 +02:00
<para > i </para>
2024-10-19 16:05:49 +02:00
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
</section>
<anchor xml:id= "_graphics_8h_1afb83b572ba51cecca0db17db6d046546" /> <section >
<title > graphics_draw_plan()</title>
<indexterm > <primary > graphics_draw_plan</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_plan</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > void graphics_draw_plan (const int graphics_stack_id, GLuint a, GLuint b, GLuint c)</computeroutput> </para> <para >
2024-10-20 01:05:12 +02:00
<para > Writes values to describe an (a,b,c) plan (triangle) into the plan buffer. </para>
</para>
2024-10-19 16:05:49 +02:00
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > a</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > b</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > c</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
<anchor xml:id= "_graphics_8h_1a79778df22a59f6bdfb2ef1be40999988" /> <section >
<title > graphics_draw_space_ridges_vertex()</title>
<indexterm > <primary > graphics_draw_space_ridges_vertex</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_space_ridges_vertex</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > int graphics_draw_space_ridges_vertex (const int graphics_stack_id, long offset_vertex, long x, long y, long z)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
<para > Writes grid ridges to vertex and color buffers. </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > offset_vertex</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > x</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > y</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
2024-10-20 01:05:12 +02:00
<row >
<entry > z</entry> <entry > </entry>
</row>
2024-10-19 16:05:49 +02:00
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara > <title > Returns</title>
2024-10-20 01:05:12 +02:00
<para > i</para>
2024-10-19 16:05:49 +02:00
</formalpara>
Writes grid ridges to vertex and color buffers. </para>
</section>
<anchor xml:id= "_graphics_8h_1aa2c4ec98f5bf9942092ff385e9fac72f" /> <section >
<title > graphics_draw_vertex()</title>
<indexterm > <primary > graphics_draw_vertex</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_draw_vertex</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > void graphics_draw_vertex (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-22 23:58:04 +02:00
<para > Writes values to describe a vertex at (x,y,z) intoq the vertex buffer. </para>
2024-10-19 16:05:49 +02:00
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > x</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > y</entry> <entry >
<para > </para>
2024-10-20 23:03:17 +02:00
</entry>
</row>
<row >
<entry > z</entry> <entry >
<para > </para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 01:05:12 +02:00
</para>
2024-10-19 16:05:49 +02:00
</section>
<anchor xml:id= "_graphics_8h_1a5a4ed7438a755777b162fc37e84ba93a" /> <section >
<title > graphics_init()</title>
<indexterm > <primary > graphics_init</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_init</secondary> </indexterm>
<para > <computeroutput > int graphics_init (void * error_buffer)</computeroutput> </para> <para >
<para > Initializes a gl_area. </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-20 01:05:12 +02:00
<entry > *error_buffer</entry> <entry >
<para > gl_area, ptr to the gl_area widget</para>
2024-10-19 16:05:49 +02:00
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara > <title > Returns</title>
<para > true if initialized</para>
</formalpara>
2024-10-22 23:58:04 +02:00
param *error_buffer < DO NOT DOCUMENT (it' s ' void' )</para>
2024-10-19 16:05:49 +02:00
2024-10-22 23:58:04 +02:00
<para > <formalpara > <title > Returns</title>
2024-10-19 16:05:49 +02:00
2024-10-20 23:03:17 +02:00
<para > true if initialized </para>
2024-10-19 16:05:49 +02:00
</formalpara>
</para>
</section>
<anchor xml:id= "_graphics_8h_1aa86924f99e2a17fcb4e33b22b8987a95" /> <section >
<title > graphics_init_buffers()</title>
<indexterm > <primary > graphics_init_buffers</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_init_buffers</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > void graphics_init_buffers (const int graphics_stack_id)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
<para > Initializes the buffer of a gl_area Calls according to the user preferences. </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-22 23:58:04 +02:00
<entry > graphics_stack_id</entry> <entry > </entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-20 23:03:17 +02:00
gl_area, ptr to the gl_area widget </para>
2024-10-19 16:05:49 +02:00
</section>
<anchor xml:id= "_graphics_8h_1ac5ba153022c8589d2cd83442197e163e" /> <section >
<title > graphics_init_shaders()</title>
<indexterm > <primary > graphics_init_shaders</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_init_shaders</secondary> </indexterm>
2024-10-22 23:58:04 +02:00
<para > <computeroutput > bool graphics_init_shaders (const int graphics_stack_id)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
<para > Initializes the shaders of a gl_area and link them to a program. </para>
</para>
<para >
2024-10-20 01:05:12 +02:00
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
2024-10-22 23:58:04 +02:00
<entry > graphics_stack_id</entry> <entry > </entry>
2024-10-19 16:05:49 +02:00
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara > <title > Returns</title>
2024-10-22 23:58:04 +02:00
<para > initialized </para>
2024-10-19 16:05:49 +02:00
</formalpara>
</para>
</section>
<anchor xml:id= "_graphics_8h_1a76f5c593f1d55ebbc838437d9240ad8a" /> <section >
<title > graphics_model_setup()</title>
<indexterm > <primary > graphics_model_setup</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_model_setup</secondary> </indexterm>
2024-10-20 01:05:12 +02:00
<para > <computeroutput > void graphics_model_setup (const int graphics_stack_id)</computeroutput> </para> <para >
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para > graphics_model_setup </para>
2024-10-19 16:05:49 +02:00
</para>
2024-10-20 01:05:12 +02:00
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
2024-10-23 00:06:21 +02:00
</section>
<anchor xml:id= "_graphics_8h_1a6a8069bea50642d8e4d582194cf7c014" /> <section >
<title > graphics_set_arrow()</title>
<indexterm > <primary > graphics_set_arrow</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_set_arrow</secondary> </indexterm>
<para > <computeroutput > int graphics_set_arrow (int graphics_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)</computeroutput> </para> <para >
<para > phantom documentation </para>
</para>
<para >
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
<entry > graphics_stack_id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > arrows_nb</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > space_X</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > space_Y</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > space_Z</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > requested_weight</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > site</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > arrow_x</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > arrow_y</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > arrow_z</entry> <entry >
<para > </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
2024-10-19 16:05:49 +02:00
</section>
2024-10-22 23:58:04 +02:00
<anchor xml:id= "_graphics_8h_1aa4d80f7ee104aa414e7ed4b90e0eac88" /> <section >
2024-10-20 01:05:12 +02:00
<title > graphics_shutdown()</title>
<indexterm > <primary > graphics_shutdown</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_shutdown</secondary> </indexterm>
<para > <computeroutput > bool graphics_shutdown (const int id, void * error_buffer)</computeroutput> </para> <para >
<para > Shutdowns a gl_area. </para>
</para>
2024-10-19 16:05:49 +02:00
2024-10-20 01:05:12 +02:00
<para >
2024-10-20 23:03:17 +02:00
<formalpara >
<title >
Parameters</title>
<para >
<table frame= "all" >
<tgroup cols= "2" align= "left" colsep= "1" rowsep= "1" >
<colspec colwidth= "1*" />
<colspec colwidth= "4*" />
<tbody >
<row >
<entry > id</entry> <entry >
<para > </para>
</entry>
</row>
<row >
<entry > *error_buffer</entry> <entry > </entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
2024-10-22 23:58:04 +02:00
<formalpara > <title > Returns</title>
2024-10-20 23:03:17 +02:00
2024-10-22 23:58:04 +02:00
<para > success </para>
2024-10-19 16:05:49 +02:00
</formalpara>
</para>
</section>
</section>
<section >
<title > Variable Documentation</title>
<anchor xml:id= "_graphics_8h_1ad2cd7fe4849c259e9dedcc6e7e795aaf" /> <section >
<title > graphics_stack</title>
<indexterm > <primary > graphics_stack</primary> <secondary > graphics.h</secondary> </indexterm>
<indexterm > <primary > graphics.h</primary> <secondary > graphics_stack</secondary> </indexterm>
<para > <computeroutput > struct <link linkend= "_structgraphics__stack__t" > graphics_stack_t</link> * graphics_stack<computeroutput > [extern]</computeroutput> </computeroutput> </para> <para >
<para > Dynamic array of ptrs to dynamically allocated gl_area_entry. </para>
</para>
<para > Dynamic array of ptrs to dynamically allocated gl_area_entry. </para>
</section>
</section>
</section>