Gem-graph 0.1.0
A modelling tool based on rewriting of geometric graphs.
|
graphics header More...
Classes | |
struct | graphics_stack_t |
Structure describing a gl_area and its parameters, used to create a table of Gem-graph client current gl_areas. More... | |
Functions | |
bool | graphics_render_stack (GtkWidget *container_widget) |
Structure describing a gl_area and its parameters, used to create a table of Gem-graph client current gl_areas. | |
bool | graphics_setup_glarea (int target_mode, GtkWidget *target_widget) |
phantom documentation | |
int | graphics_init (void *error_buffer) |
Initializes a gl_area. | |
void | graphics_draw (const int graphics_stack_id) |
Draws the current buffer to a gl_area. | |
bool | graphics_shutdown (const int graphics_stack_id, void *error_buffer) |
Shutdowns a gl_area. | |
bool | graphics_init_shaders (const int graphics_stack_id) |
Initializes the shaders of a gl_area and link them to a program. | |
bool | graphics_init_graphics_stack (void *container_widget, GError *error_buffer) |
phantom documentation | |
bool | graphics_shutdown_graphics_stack (void *container_widget, GError *error_buffer) |
phantom documentation | |
bool | graphics_update_axis_stack (GtkWidget *container_widget, int axis, int value) |
phantom documentation | |
void | graphics_init_buffers (const int graphics_stack_id) |
Initializes the buffer of a gl_area Calls according to the user preferences. | |
void | graphics_draw_vertex (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z) |
Draws a vertex (x, y, z) if (console) prints (x, y, z) values to console. | |
void | graphics_draw_line (const int graphics_stack_id, GLuint a, GLuint b) |
Writes values to describe a line from a to b into the line buffer. | |
void | graphics_draw_plan (const int graphics_stack_id, GLuint a, GLuint b, GLuint c) |
Writes values to describe an (a,b,c) plan (triangle) into the plan buffer. | |
void | graphics_draw_color (const int graphics_stack_id, GLfloat r, GLfloat g, GLfloat b) |
Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console. | |
void | graphics_model_setup (const int graphics_stack_id) |
graphics_model_setup | |
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) |
Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console. | |
int | graphics_draw_one_arrow_line (const int graphics_stack_id, int offset_vertex) |
Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console. | |
int | graphics_draw_space_ridges_vertex (const int graphics_stack_id, long offset_vertex, long x, long y, long z) |
Writes grid ridges to vertex and color buffers. | |
int | graphics_draw_space_ridges_lines (const int graphics_stack_id) |
draw_space_ridges_lines | |
long | graphics_draw_grids_on_space_faces_vertex (const int graphics_stack_id, long x, long y, long z) |
Writes grid lines on space faces. | |
long | graphics_draw_grids_on_space_faces_lines (const int graphics_stack_id, long offset_vertex, long x, long y, long z) |
phantom documentation used to test the functioning of doxygen | |
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) |
set_arrow | |
Variables | |
struct graphics_stack_t * | graphics_stack |
Dynamic array of ptrs to dynamically allocated gl_area_entry. | |
graphics header
This file is part of Gem-graph.
void graphics_draw | ( | const int | stack_id | ) |
Draws the current buffer to a gl_area.
graphics_stack_id | |
stack_id | gl_area, ptr to the gl_area widget |
void graphics_draw_color | ( | const int | stack_id, |
GLfloat | r, | ||
GLfloat | g, | ||
GLfloat | b | ||
) |
Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console.
graphics_stack_id | |
r | |
g | |
b |
Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console.
stack_id | |
r | |
g | |
b |
long graphics_draw_grids_on_space_faces_lines | ( | const int | graphics_stack_id, |
long | offset_vertex, | ||
long | x, | ||
long | y, | ||
long | z | ||
) |
phantom documentation used to test the functioning of doxygen
graphics_stack_id | |
offset_vertex | |
x | |
y | |
z |
long graphics_draw_grids_on_space_faces_vertex | ( | const int | stack_id, |
long | x, | ||
long | y, | ||
long | z | ||
) |
Writes grid lines on space faces.
graphics_stack_id | |
x | |
y | |
z |
Writes grid lines on space faces.
void graphics_draw_line | ( | const int | stack_id, |
GLuint | a, | ||
GLuint | b | ||
) |
Writes values to describe a line from a to b into the line buffer.
@use liste de fonctions GTK
coords | GLuint (a,b) |
graphics_stack_id | |
a | |
b | |
stack_id | |
a | |
b |
int graphics_draw_one_arrow_line | ( | const int | graphics_stack_id, |
int | offset_vertex | ||
) |
Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console.
graphics_stack_id | |
offset_vertex |
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 | ||
) |
Draws one arrow vertex (x, y, z) if (console) prints (x, y, z) values to console.
graphics_stack_id | |
space_X | |
space_Y | |
space_Z | |
weight | |
site | |
x | |
y | |
z |
void graphics_draw_plan | ( | const int | stack_id, |
GLuint | a, | ||
GLuint | b, | ||
GLuint | c | ||
) |
Writes values to describe an (a,b,c) plan (triangle) into the plan buffer.
coords | GLuint (a,b,c) |
graphics_stack_id | |
a | |
b | |
c | |
stack_id | |
a | |
b | |
c |
int graphics_draw_space_ridges_lines | ( | const int | stack_id | ) |
draw_space_ridges_lines
graphics_stack_id |
draw_space_ridges_lines
int graphics_draw_space_ridges_vertex | ( | const int | stack_id, |
long | offset_vertex, | ||
long | x, | ||
long | y, | ||
long | z | ||
) |
Writes grid ridges to vertex and color buffers.
graphics_stack_id | |
offset_vertex | |
x | |
y | |
z |
Writes grid ridges to vertex and color buffers.
void graphics_draw_vertex | ( | const int | stack_id, |
GLfloat | x, | ||
GLfloat | y, | ||
GLfloat | z | ||
) |
Draws a vertex (x, y, z) if (console) prints (x, y, z) values to console.
GLfloat | x, GLfloat y, GLfloat z |
graphics_stack_id | |
x | |
y | |
z |
Draws a vertex (x, y, z) if (console) prints (x, y, z) values to console.
stack_id | |
x | |
y | |
z |
int graphics_init | ( | void * | error_buffer | ) |
Initializes a gl_area.
*error_buffer | gl_area, ptr to the gl_area widget |
*error_buffer |
void graphics_init_buffers | ( | const int | stack_id | ) |
Initializes the buffer of a gl_area Calls according to the user preferences.
gl_area,ptr | to the gl_area widget |
graphics_stack_id | gl_area, ptr to the gl_area widget |
stack_id |
gl_area, ptr to the gl_area widget
bool graphics_init_shaders | ( | const int | stack_id | ) |
Initializes the shaders of a gl_area and link them to a program.
graphics_stack_id | gl_area, ptr to the gl_area widget |
gl_area,ptr | to the gl_area widget |
stack_id |
gl_area, ptr to the gl_area widget
void graphics_model_setup | ( | const int | graphics_stack_id | ) |
graphics_model_setup
graphics_stack_id |
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 | ||
) |
set_arrow
graphics_stack_id | |
arrows_nb | |
space_X | |
space_Y | |
space_Z | |
requested_weight | |
site | |
x | |
y | |
z |
bool graphics_shutdown | ( | const int | id, |
void * | error_buffer | ||
) |
Shutdowns a gl_area.
graphics_stack_id | |
*error_buffer |
gl_area,ptr | to the gl_area widget |
id | |
*error_buffer |
gl_area, ptr to the gl_area widget
|
extern |
Dynamic array of ptrs to dynamically allocated gl_area_entry.
Dynamic array of ptrs to dynamically allocated gl_area_entry.