128 lines
2.7 KiB
Groff
128 lines
2.7 KiB
Groff
.TH "src/graphics/draw.c" 3 "Version 0.1.0" "Gem-graph" \" -*- nroff -*-
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
src/graphics/draw.c \- general drawing functions
|
|
|
|
.SH SYNOPSIS
|
|
.br
|
|
.PP
|
|
\fC#include <cglm/cglm\&.h>\fP
|
|
.br
|
|
\fC#include '\&.\&./\&.\&./include/base\&.h'\fP
|
|
.br
|
|
\fC#include '\&.\&./\&.\&./include/graphics\&.h'\fP
|
|
.br
|
|
|
|
.SS "Functions"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "void \fBgraphics_draw_vertex\fP (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z)"
|
|
.br
|
|
.RI "Writes values to describe a vertex at (x,y,z) intoq the vertex buffer\&. "
|
|
.ti -1c
|
|
.RI "void \fBgraphics_draw_color\fP (const int graphics_stack_id, GLfloat r, GLfloat g, GLfloat b)"
|
|
.br
|
|
.RI "Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console\&. "
|
|
.ti -1c
|
|
.RI "void \fBgraphics_draw_line\fP (const int graphics_stack_id, GLuint a, GLuint b)"
|
|
.br
|
|
.RI "Writes values to describe a line from a to b into the line buffer\&. "
|
|
.ti -1c
|
|
.RI "void \fBgraphics_draw_plan\fP (const int graphics_stack_id, GLuint a, GLuint b, GLuint c)"
|
|
.br
|
|
.RI "Writes values to describe an (a,b,c) plan (triangle) into the plan buffer\&. "
|
|
.ti -1c
|
|
.RI "void \fBgraphics_draw\fP (const int graphics_stack_id)"
|
|
.br
|
|
.RI "Draws the current buffer to a gl_area\&. "
|
|
.in -1c
|
|
.SH "Detailed Description"
|
|
.PP
|
|
general drawing functions
|
|
|
|
This file is part of Gem-graph\&.
|
|
.SH "Function Documentation"
|
|
.PP
|
|
.SS "void graphics_draw (const int graphics_stack_id)"
|
|
|
|
.PP
|
|
Draws the current buffer to a gl_area\&.
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIgraphics_stack_id\fP gl_area, ptr to the gl_area widget
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void graphics_draw_color (const int graphics_stack_id, GLfloat r, GLfloat g, GLfloat b)"
|
|
|
|
.PP
|
|
Draws the color (r, g, b) associated to a vertex if (console) prints (r, g, b) values to console\&.
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIgraphics_stack_id\fP
|
|
.br
|
|
\fIr\fP
|
|
.br
|
|
\fIg\fP
|
|
.br
|
|
\fIb\fP
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void graphics_draw_line (const int graphics_stack_id, GLuint a, GLuint b)"
|
|
|
|
.PP
|
|
Writes values to describe a line from a to b into the line buffer\&.
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIgraphics_stack_id\fP
|
|
.br
|
|
\fIa\fP
|
|
.br
|
|
\fIb\fP
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void graphics_draw_plan (const int graphics_stack_id, GLuint a, GLuint b, GLuint c)"
|
|
|
|
.PP
|
|
Writes values to describe an (a,b,c) plan (triangle) into the plan buffer\&.
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIgraphics_stack_id\fP
|
|
.br
|
|
\fIa\fP
|
|
.br
|
|
\fIb\fP
|
|
.br
|
|
\fIc\fP
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void graphics_draw_vertex (const int graphics_stack_id, GLfloat x, GLfloat y, GLfloat z)"
|
|
|
|
.PP
|
|
Writes values to describe a vertex at (x,y,z) intoq the vertex buffer\&.
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIgraphics_stack_id\fP
|
|
.br
|
|
\fIx\fP
|
|
.br
|
|
\fIy\fP
|
|
.br
|
|
\fIz\fP
|
|
.RE
|
|
.PP
|
|
|
|
.SH "Author"
|
|
.PP
|
|
Generated automatically by Doxygen for Gem-graph from the source code\&.
|