src/graphics/draw.c File Reference src/graphics/draw.c general drawing functions #include <cglm/cglm.h>#include "../../include/base.h"#include "../../include/graphics.h"Include dependency graph for draw.c: Functions void graphics_draw_vertex (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z) Writes values to describe a vertex at (x,y,z) intoq the vertex 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_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 (const int graphics_stack_id) Draws the current buffer to a gl_area.
Detailed Description general drawing functions This file is part of Gem-graph.
Function Documentation
graphics_draw() graphics_drawdraw.c draw.cgraphics_draw void graphics_draw (const int graphics_stack_id) Draws the current buffer to a gl_area. Parameters graphics_stack_id gl_area, ptr to the gl_area widget
Here is the caller graph for this function:
graphics_draw_color() graphics_draw_colordraw.c draw.cgraphics_draw_color 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. Parameters graphics_stack_id r g b
Here is the caller graph for this function:
graphics_draw_line() graphics_draw_linedraw.c draw.cgraphics_draw_line 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. Parameters graphics_stack_id a b
Here is the caller graph for this function:
graphics_draw_plan() graphics_draw_plandraw.c draw.cgraphics_draw_plan 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. Parameters graphics_stack_id a b c
graphics_draw_vertex() graphics_draw_vertexdraw.c draw.cgraphics_draw_vertex void graphics_draw_vertex (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z) Writes values to describe a vertex at (x,y,z) intoq the vertex buffer. Parameters graphics_stack_id x y z
Here is the caller graph for this function: